From ecbf5d6c3db7a604e6a1cce2ba4b2532616f5b36 Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Sun, 11 Jan 2026 14:04:30 +0000 Subject: [PATCH 1/2] Autorest Upgrade - 4.0.752 --- .../Get-AzNetworkSecurityPerimeter.ps1 | 3 +- ...t-AzNetworkSecurityPerimeterAccessRule.ps1 | 3 +- ...ecurityPerimeterAssociableResourceType.ps1 | 3 +- ...-AzNetworkSecurityPerimeterAssociation.ps1 | 3 +- .../Get-AzNetworkSecurityPerimeterLink.ps1 | 3 +- ...zNetworkSecurityPerimeterLinkReference.ps1 | 3 +- ...kSecurityPerimeterLoggingConfiguration.ps1 | 3 +- .../Get-AzNetworkSecurityPerimeterProfile.ps1 | 3 +- ...t-AzNetworkSecurityPerimeterServiceTag.ps1 | 3 +- .../New-AzNetworkSecurityPerimeter.ps1 | 3 +- ...w-AzNetworkSecurityPerimeterAccessRule.ps1 | 3 +- ...-AzNetworkSecurityPerimeterAssociation.ps1 | 3 +- .../New-AzNetworkSecurityPerimeterLink.ps1 | 3 +- ...kSecurityPerimeterLoggingConfiguration.ps1 | 3 +- .../New-AzNetworkSecurityPerimeterProfile.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 81 +-- .../Remove-AzNetworkSecurityPerimeter.ps1 | 3 +- ...e-AzNetworkSecurityPerimeterAccessRule.ps1 | 3 +- ...-AzNetworkSecurityPerimeterAssociation.ps1 | 3 +- .../Remove-AzNetworkSecurityPerimeterLink.ps1 | 3 +- ...zNetworkSecurityPerimeterLinkReference.ps1 | 3 +- ...kSecurityPerimeterLoggingConfiguration.ps1 | 3 +- ...move-AzNetworkSecurityPerimeterProfile.ps1 | 3 +- .../Update-AzNetworkSecurityPerimeter.ps1 | 3 +- ...e-AzNetworkSecurityPerimeterAccessRule.ps1 | 3 +- ...-AzNetworkSecurityPerimeterAssociation.ps1 | 3 +- .../Update-AzNetworkSecurityPerimeterLink.ps1 | 3 +- ...kSecurityPerimeterLoggingConfiguration.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../exports/Deploy-AzNetworkCloudCluster.ps1 | 3 +- ...StorageApplianceRemoteVendorManagement.ps1 | 3 +- ...StorageApplianceRemoteVendorManagement.ps1 | 3 +- .../exports/Get-AzNetworkCloudAgentPool.ps1 | 3 +- .../Get-AzNetworkCloudBareMetalMachine.ps1 | 3 +- ...t-AzNetworkCloudBareMetalMachineKeySet.ps1 | 3 +- .../exports/Get-AzNetworkCloudBmcKeySet.ps1 | 3 +- .../exports/Get-AzNetworkCloudCluster.ps1 | 3 +- .../Get-AzNetworkCloudClusterManager.ps1 | 3 +- .../exports/Get-AzNetworkCloudConsole.ps1 | 3 +- .../Get-AzNetworkCloudKubernetesCluster.ps1 | 3 +- ...AzNetworkCloudKubernetesClusterFeature.ps1 | 3 +- .../exports/Get-AzNetworkCloudL2Network.ps1 | 3 +- .../exports/Get-AzNetworkCloudL3Network.ps1 | 3 +- ...Get-AzNetworkCloudMetricsConfiguration.ps1 | 3 +- .../exports/Get-AzNetworkCloudRack.ps1 | 3 +- .../exports/Get-AzNetworkCloudRackSku.ps1 | 3 +- .../Get-AzNetworkCloudServicesNetwork.ps1 | 3 +- .../Get-AzNetworkCloudStorageAppliance.ps1 | 3 +- .../Get-AzNetworkCloudTrunkedNetwork.ps1 | 3 +- .../Get-AzNetworkCloudVirtualMachine.ps1 | 3 +- .../exports/Get-AzNetworkCloudVolume.ps1 | 3 +- ...e-AzNetworkCloudBareMetalMachineCordon.ps1 | 3 +- ...etworkCloudBareMetalMachineDataExtract.ps1 | 3 +- ...-AzNetworkCloudBareMetalMachineReimage.ps1 | 3 +- ...-AzNetworkCloudBareMetalMachineReplace.ps1 | 3 +- ...NetworkCloudBareMetalMachineRunCommand.ps1 | 3 +- ...orkCloudBareMetalMachineRunReadCommand.ps1 | 3 +- ...AzNetworkCloudBareMetalMachineUncordon.ps1 | 3 +- ...tworkCloudClusterContinueVersionUpdate.ps1 | 3 +- ...oke-AzNetworkCloudClusterVersionUpdate.ps1 | 3 +- ...nvoke-AzNetworkCloudScanClusterRuntime.ps1 | 3 +- ...ke-AzNetworkCloudVirtualMachineReimage.ps1 | 3 +- .../exports/New-AzNetworkCloudAgentPool.ps1 | 3 +- ...w-AzNetworkCloudBareMetalMachineKeySet.ps1 | 3 +- .../exports/New-AzNetworkCloudBmcKeySet.ps1 | 3 +- .../exports/New-AzNetworkCloudCluster.ps1 | 3 +- .../New-AzNetworkCloudClusterManager.ps1 | 3 +- .../exports/New-AzNetworkCloudConsole.ps1 | 3 +- .../New-AzNetworkCloudKubernetesCluster.ps1 | 3 +- ...AzNetworkCloudKubernetesClusterFeature.ps1 | 3 +- .../exports/New-AzNetworkCloudL2Network.ps1 | 3 +- .../exports/New-AzNetworkCloudL3Network.ps1 | 3 +- ...New-AzNetworkCloudMetricsConfiguration.ps1 | 3 +- .../New-AzNetworkCloudServicesNetwork.ps1 | 3 +- .../New-AzNetworkCloudTrunkedNetwork.ps1 | 3 +- .../New-AzNetworkCloudVirtualMachine.ps1 | 3 +- .../exports/New-AzNetworkCloudVolume.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 264 ++++------ .../Remove-AzNetworkCloudAgentPool.ps1 | 3 +- ...e-AzNetworkCloudBareMetalMachineKeySet.ps1 | 3 +- .../Remove-AzNetworkCloudBmcKeySet.ps1 | 3 +- .../exports/Remove-AzNetworkCloudCluster.ps1 | 3 +- .../Remove-AzNetworkCloudClusterManager.ps1 | 3 +- .../exports/Remove-AzNetworkCloudConsole.ps1 | 3 +- ...Remove-AzNetworkCloudKubernetesCluster.ps1 | 3 +- ...AzNetworkCloudKubernetesClusterFeature.ps1 | 3 +- .../Remove-AzNetworkCloudL2Network.ps1 | 3 +- .../Remove-AzNetworkCloudL3Network.ps1 | 3 +- ...ove-AzNetworkCloudMetricsConfiguration.ps1 | 3 +- .../Remove-AzNetworkCloudServicesNetwork.ps1 | 3 +- .../Remove-AzNetworkCloudTrunkedNetwork.ps1 | 3 +- .../Remove-AzNetworkCloudVirtualMachine.ps1 | 3 +- .../exports/Remove-AzNetworkCloudVolume.ps1 | 3 +- ...Restart-AzNetworkCloudBareMetalMachine.ps1 | 3 +- ...rt-AzNetworkCloudKubernetesClusterNode.ps1 | 3 +- .../Restart-AzNetworkCloudVirtualMachine.ps1 | 3 +- .../Start-AzNetworkCloudBareMetalMachine.ps1 | 3 +- .../Start-AzNetworkCloudVirtualMachine.ps1 | 3 +- .../Stop-AzNetworkCloudBareMetalMachine.ps1 | 3 +- .../Stop-AzNetworkCloudVirtualMachine.ps1 | 3 +- .../Update-AzNetworkCloudAgentPool.ps1 | 3 +- .../Update-AzNetworkCloudBareMetalMachine.ps1 | 3 +- ...e-AzNetworkCloudBareMetalMachineKeySet.ps1 | 3 +- .../Update-AzNetworkCloudBmcKeySet.ps1 | 3 +- .../exports/Update-AzNetworkCloudCluster.ps1 | 3 +- .../Update-AzNetworkCloudClusterManager.ps1 | 3 +- .../exports/Update-AzNetworkCloudConsole.ps1 | 3 +- ...Update-AzNetworkCloudKubernetesCluster.ps1 | 3 +- ...AzNetworkCloudKubernetesClusterFeature.ps1 | 3 +- .../Update-AzNetworkCloudL2Network.ps1 | 3 +- .../Update-AzNetworkCloudL3Network.ps1 | 3 +- ...ate-AzNetworkCloudMetricsConfiguration.ps1 | 3 +- .../exports/Update-AzNetworkCloudRack.ps1 | 3 +- .../Update-AzNetworkCloudServicesNetwork.ps1 | 3 +- .../Update-AzNetworkCloudStorageAppliance.ps1 | 3 +- .../Update-AzNetworkCloudTrunkedNetwork.ps1 | 3 +- .../Update-AzNetworkCloudVirtualMachine.ps1 | 3 +- .../exports/Update-AzNetworkCloudVolume.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../Get-AzNetworkFunctionCollectorPolicy.ps1 | 3 +- .../Get-AzNetworkFunctionTrafficCollector.ps1 | 3 +- .../New-AzNetworkFunctionCollectorPolicy.ps1 | 3 +- .../New-AzNetworkFunctionTrafficCollector.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 42 +- ...emove-AzNetworkFunctionCollectorPolicy.ps1 | 3 +- ...move-AzNetworkFunctionTrafficCollector.ps1 | 3 +- ...pdate-AzNetworkFunctionCollectorPolicy.ps1 | 3 +- ...te-AzNetworkFunctionCollectorPolicyTag.ps1 | 7 +- ...date-AzNetworkFunctionTrafficCollector.ps1 | 3 +- ...e-AzNetworkFunctionTrafficCollectorTag.ps1 | 7 +- ...AzNetworkFunctionCollectorPolicy_Create.cs | 33 +- ...kFunctionCollectorPolicy_CreateExpanded.cs | 33 +- ...nctionCollectorPolicy_CreateViaIdentity.cs | 33 +- ..._CreateViaIdentityAzureTrafficCollector.cs | 33 +- ...iaIdentityAzureTrafficCollectorExpanded.cs | 33 +- ...llectorPolicy_CreateViaIdentityExpanded.cs | 33 +- ...onCollectorPolicy_CreateViaJsonFilePath.cs | 33 +- ...tionCollectorPolicy_CreateViaJsonString.cs | 33 +- ...zNetworkFunctionTrafficCollector_Create.cs | 33 +- ...FunctionTrafficCollector_CreateExpanded.cs | 33 +- ...ctionTrafficCollector_CreateViaIdentity.cs | 33 +- ...fficCollector_CreateViaIdentityExpanded.cs | 33 +- ...nTrafficCollector_CreateViaJsonFilePath.cs | 33 +- ...ionTrafficCollector_CreateViaJsonString.cs | 33 +- ...AzNetworkFunctionCollectorPolicy_Delete.cs | 18 +- ...nctionCollectorPolicy_DeleteViaIdentity.cs | 18 +- ..._DeleteViaIdentityAzureTrafficCollector.cs | 18 +- ...zNetworkFunctionTrafficCollector_Delete.cs | 18 +- ...ctionTrafficCollector_DeleteViaIdentity.cs | 18 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 1 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../New-AzNetworkFunctionCollectorPolicy.ps1 | 4 +- .../New-AzNetworkFunctionTrafficCollector.ps1 | 4 +- .../internal/ProxyCmdletDefinitions.ps1 | 8 +- .../exports/Get-AzNewRelicAccount.ps1 | 3 +- .../exports/Get-AzNewRelicBillingInfo.ps1 | 3 +- ...Get-AzNewRelicConnectedPartnerResource.ps1 | 3 +- .../exports/Get-AzNewRelicMonitor.ps1 | 3 +- .../Get-AzNewRelicMonitorMetricRule.ps1 | 3 +- .../Get-AzNewRelicMonitorMetricStatus.ps1 | 3 +- ...Get-AzNewRelicMonitorMonitoredResource.ps1 | 3 +- .../exports/Get-AzNewRelicMonitorTagRule.ps1 | 3 +- .../Get-AzNewRelicMonitoredAppService.ps1 | 3 +- .../exports/Get-AzNewRelicMonitoredHost.ps1 | 3 +- .../Get-AzNewRelicMonitoredSubscription.ps1 | 3 +- .../exports/Get-AzNewRelicOrganization.ps1 | 3 +- .../exports/Get-AzNewRelicPlan.ps1 | 3 +- .../Initialize-AzNewRelicSaaSResource.ps1 | 3 +- .../exports/Invoke-AzNewRelicHostMonitor.ps1 | 3 +- ...voke-AzNewRelicLatestMonitorLinkedSaaS.ps1 | 3 +- .../Invoke-AzNewRelicLinkMonitorSaaS.ps1 | 3 +- .../Invoke-AzNewRelicResubscribeMonitor.ps1 | 3 +- .../exports/New-AzNewRelicMonitor.ps1 | 3 +- .../exports/New-AzNewRelicMonitorTagRule.ps1 | 3 +- .../New-AzNewRelicMonitoredSubscription.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 84 ++-- .../exports/Remove-AzNewRelicMonitor.ps1 | 3 +- .../Remove-AzNewRelicMonitorTagRule.ps1 | 3 +- ...Remove-AzNewRelicMonitoredSubscription.ps1 | 3 +- .../Switch-AzNewRelicMonitorBilling.ps1 | 3 +- .../Update-AzNewRelicMonitorIngestionKey.ps1 | 3 +- .../Update-AzNewRelicMonitorTagRule.ps1 | 3 +- ...Update-AzNewRelicMonitoredSubscription.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../exports/Get-AzNginxCertificate.ps1 | 3 +- .../exports/Get-AzNginxConfiguration.ps1 | 3 +- .../exports/Get-AzNginxDeployment.ps1 | 3 +- .../Invoke-AzNginxAnalysisConfiguration.ps1 | 3 +- .../exports/New-AzNginxCertificate.ps1 | 3 +- .../exports/New-AzNginxConfiguration.ps1 | 3 +- .../exports/New-AzNginxDeployment.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 39 +- .../exports/Remove-AzNginxCertificate.ps1 | 3 +- .../exports/Remove-AzNginxConfiguration.ps1 | 3 +- .../exports/Remove-AzNginxDeployment.ps1 | 3 +- .../exports/Update-AzNginxCertificate.ps1 | 3 +- .../exports/Update-AzNginxConfiguration.ps1 | 3 +- .../exports/Update-AzNginxDeployment.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../exports/Add-AzOracleCloudVMClusterVM.ps1 | 3 +- .../Get-AzOracleAutonomousDatabase.ps1 | 3 +- .../Get-AzOracleAutonomousDatabaseBackup.ps1 | 3 +- ...AzOracleAutonomousDatabaseCharacterSet.ps1 | 3 +- ...AutonomousDatabaseNationalCharacterSet.ps1 | 3 +- .../Get-AzOracleAutonomousDatabaseVersion.ps1 | 3 +- ...Get-AzOracleCloudExadataInfrastructure.ps1 | 3 +- .../exports/Get-AzOracleCloudVMCluster.ps1 | 3 +- .../exports/Get-AzOracleDbNode.ps1 | 3 +- .../exports/Get-AzOracleDbServer.ps1 | 3 +- .../exports/Get-AzOracleDbSystem.ps1 | 3 +- .../exports/Get-AzOracleDbSystemShape.ps1 | 3 +- .../exports/Get-AzOracleDbVersion.ps1 | 3 +- .../exports/Get-AzOracleDnsPrivateView.ps1 | 3 +- .../exports/Get-AzOracleDnsPrivateZone.ps1 | 3 +- .../exports/Get-AzOracleExadbVMCluster.ps1 | 3 +- .../exports/Get-AzOracleExascaleDbNode.ps1 | 3 +- .../Get-AzOracleExascaleDbStorageVault.ps1 | 3 +- .../exports/Get-AzOracleFlexComponent.ps1 | 3 +- .../exports/Get-AzOracleGiMinorVersion.ps1 | 3 +- .../exports/Get-AzOracleGiVersion.ps1 | 3 +- .../exports/Get-AzOracleNetworkAnchor.ps1 | 3 +- .../exports/Get-AzOracleResourceAnchor.ps1 | 3 +- ...nvoke-AzOracleActionAutonomousDatabase.ps1 | 3 +- .../exports/Invoke-AzOracleActionDbNode.ps1 | 3 +- .../Invoke-AzOracleActionExascaleDbNode.ps1 | 3 +- ...e-AzOracleSwitchoverAutonomousDatabase.ps1 | 3 +- .../New-AzOracleAutonomousDatabase.ps1 | 3 +- .../New-AzOracleAutonomousDatabaseBackup.ps1 | 3 +- ...New-AzOracleCloudExadataInfrastructure.ps1 | 3 +- .../exports/New-AzOracleCloudVMCluster.ps1 | 3 +- .../exports/New-AzOracleDbSystem.ps1 | 3 +- .../exports/New-AzOracleExadbVMCluster.ps1 | 3 +- .../New-AzOracleExascaleDbStorageVault.ps1 | 3 +- .../exports/New-AzOracleNetworkAnchor.ps1 | 3 +- .../exports/New-AzOracleResourceAnchor.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 171 +++---- .../Remove-AzOracleAutonomousDatabase.ps1 | 3 +- ...emove-AzOracleAutonomousDatabaseBackup.ps1 | 3 +- ...ove-AzOracleCloudExadataInfrastructure.ps1 | 3 +- .../exports/Remove-AzOracleCloudVMCluster.ps1 | 3 +- .../Remove-AzOracleCloudVMClusterVM.ps1 | 3 +- .../exports/Remove-AzOracleDbSystem.ps1 | 3 +- .../exports/Remove-AzOracleExadbVMCluster.ps1 | 3 +- .../Remove-AzOracleExadbVMClusterVM.ps1 | 3 +- .../Remove-AzOracleExascaleDbStorageVault.ps1 | 3 +- .../exports/Remove-AzOracleNetworkAnchor.ps1 | 3 +- .../exports/Remove-AzOracleResourceAnchor.ps1 | 3 +- ...sDatabaseDisasterRecoveryConfiguration.ps1 | 3 +- .../Restore-AzOracleAutonomousDatabase.ps1 | 3 +- .../Update-AzOracleAutonomousDatabase.ps1 | 3 +- ...ate-AzOracleCloudExadataInfrastructure.ps1 | 3 +- .../exports/Update-AzOracleCloudVMCluster.ps1 | 3 +- .../exports/Update-AzOracleDbSystem.ps1 | 3 +- .../exports/Update-AzOracleExadbVMCluster.ps1 | 3 +- .../Update-AzOracleExascaleDbStorageVault.ps1 | 3 +- .../exports/Update-AzOracleNetworkAnchor.ps1 | 3 +- .../exports/Update-AzOracleResourceAnchor.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../Get-AzOrbitalAvailableGroundStation.ps1 | 3 +- ...et-AzOrbitalAvailableSpacecraftContact.ps1 | 3 +- .../exports/Get-AzOrbitalContactProfile.ps1 | 3 +- .../exports/Get-AzOrbitalSpacecraft.ps1 | 3 +- .../Get-AzOrbitalSpacecraftContact.ps1 | 3 +- .../exports/New-AzOrbitalContactProfile.ps1 | 7 +- .../exports/New-AzOrbitalSpacecraft.ps1 | 17 +- .../New-AzOrbitalSpacecraftContact.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 76 ++- .../Remove-AzOrbitalContactProfile.ps1 | 3 +- .../exports/Remove-AzOrbitalSpacecraft.ps1 | 3 +- .../Remove-AzOrbitalSpacecraftContact.ps1 | 3 +- .../Update-AzOrbitalContactProfile.ps1 | 7 +- .../exports/Update-AzOrbitalSpacecraft.ps1 | 7 +- .../Update-AzOrbitalSpacecraftContact.ps1 | 7 +- .../generated/api/Models/AvailableContacts.cs | 18 +- .../api/Models/AvailableContactsProperties.cs | 18 +- .../api/Models/Contact.PowerShell.cs | 8 +- .../generated/api/Models/Contact.cs | 98 ++-- .../generated/api/Models/ContactProfile.cs | 46 +- .../api/Models/ContactProfileProperties.cs | 6 +- .../Models/ContactsProperties.PowerShell.cs | 8 +- .../api/Models/ContactsProperties.cs | 32 +- .../api/Models/ContactsProperties.json.cs | 4 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../generated/api/Models/Operation.cs | 8 +- .../generated/api/Models/OperationResult.cs | 4 +- .../generated/api/Models/ProxyResource.cs | 40 +- .../generated/api/Models/Resource.cs | 30 +- .../generated/api/Models/Spacecraft.cs | 48 +- .../api/Models/SpacecraftLink.PowerShell.cs | 8 +- .../generated/api/Models/SpacecraftLink.cs | 26 +- .../api/Models/SpacecraftLink.json.cs | 8 +- .../api/Models/SpacecraftsProperties.cs | 2 +- .../generated/api/Models/TrackedResource.cs | 42 +- ...zOrbitalAvailableSpacecraftContact_List.cs | 38 +- ...AvailableSpacecraftContact_ListExpanded.cs | 38 +- ...leSpacecraftContact_ListViaJsonFilePath.cs | 38 +- ...ableSpacecraftContact_ListViaJsonString.cs | 38 +- ...wAzOrbitalContactProfile_CreateExpanded.cs | 33 +- ...talContactProfile_CreateViaJsonFilePath.cs | 33 +- ...bitalContactProfile_CreateViaJsonString.cs | 33 +- ...OrbitalSpacecraftContact_CreateExpanded.cs | 37 +- ...act_CreateViaIdentitySpacecraftExpanded.cs | 37 +- ...SpacecraftContact_CreateViaJsonFilePath.cs | 33 +- ...alSpacecraftContact_CreateViaJsonString.cs | 33 +- .../NewAzOrbitalSpacecraft_CreateExpanded.cs | 33 +- ...OrbitalSpacecraft_CreateViaJsonFilePath.cs | 33 +- ...AzOrbitalSpacecraft_CreateViaJsonString.cs | 33 +- .../RemoveAzOrbitalContactProfile_Delete.cs | 18 +- ...OrbitalContactProfile_DeleteViaIdentity.cs | 18 +- ...RemoveAzOrbitalSpacecraftContact_Delete.cs | 18 +- ...italSpacecraftContact_DeleteViaIdentity.cs | 18 +- ...raftContact_DeleteViaIdentitySpacecraft.cs | 18 +- .../RemoveAzOrbitalSpacecraft_Delete.cs | 18 +- ...veAzOrbitalSpacecraft_DeleteViaIdentity.cs | 18 +- ...eAzOrbitalContactProfile_UpdateExpanded.cs | 33 +- ...ontactProfile_UpdateViaIdentityExpanded.cs | 33 +- ...talContactProfile_UpdateViaJsonFilePath.cs | 33 +- ...bitalContactProfile_UpdateViaJsonString.cs | 33 +- ...OrbitalSpacecraftContact_UpdateExpanded.cs | 33 +- ...ecraftContact_UpdateViaIdentityExpanded.cs | 33 +- ...act_UpdateViaIdentitySpacecraftExpanded.cs | 33 +- ...pdateAzOrbitalSpacecraft_UpdateExpanded.cs | 33 +- ...talSpacecraft_UpdateViaIdentityExpanded.cs | 33 +- ...OrbitalSpacecraft_UpdateViaJsonFilePath.cs | 33 +- ...AzOrbitalSpacecraft_UpdateViaJsonString.cs | 33 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 1 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../exports/Get-AzPeering.ps1 | 3 +- .../exports/Get-AzPeeringAsn.ps1 | 3 +- .../exports/Get-AzPeeringCdnPrefix.ps1 | 3 +- .../Get-AzPeeringConnectionMonitorTest.ps1 | 3 +- .../exports/Get-AzPeeringLegacy.ps1 | 3 +- .../exports/Get-AzPeeringLocation.ps1 | 3 +- .../exports/Get-AzPeeringReceivedRoute.ps1 | 3 +- .../exports/Get-AzPeeringRegisteredAsn.ps1 | 3 +- .../exports/Get-AzPeeringRegisteredPrefix.ps1 | 3 +- .../exports/Get-AzPeeringRpUnbilledPrefix.ps1 | 3 +- .../exports/Get-AzPeeringService.ps1 | 3 +- .../exports/Get-AzPeeringServiceCountry.ps1 | 3 +- .../exports/Get-AzPeeringServiceLocation.ps1 | 3 +- .../exports/Get-AzPeeringServicePrefix.ps1 | 3 +- .../exports/Get-AzPeeringServiceProvider.ps1 | 3 +- ...lize-AzPeeringServiceConnectionMonitor.ps1 | 3 +- .../exports/New-AzPeering.ps1 | 7 +- .../exports/New-AzPeeringAsn.ps1 | 7 +- .../New-AzPeeringConnectionMonitorTest.ps1 | 7 +- .../exports/New-AzPeeringRegisteredAsn.ps1 | 7 +- .../exports/New-AzPeeringRegisteredPrefix.ps1 | 7 +- .../exports/New-AzPeeringService.ps1 | 7 +- .../exports/New-AzPeeringServicePrefix.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 169 +++---- .../exports/Remove-AzPeering.ps1 | 3 +- .../exports/Remove-AzPeeringAsn.ps1 | 3 +- .../Remove-AzPeeringConnectionMonitorTest.ps1 | 3 +- .../exports/Remove-AzPeeringRegisteredAsn.ps1 | 3 +- .../Remove-AzPeeringRegisteredPrefix.ps1 | 3 +- .../exports/Remove-AzPeeringService.ps1 | 3 +- .../exports/Remove-AzPeeringServicePrefix.ps1 | 3 +- .../Start-AzPeeringInvokeLookingGlass.ps1 | 3 +- .../Test-AzPeeringRegisteredPrefix.ps1 | 3 +- ...t-AzPeeringServiceProviderAvailability.ps1 | 3 +- .../exports/Update-AzPeering.ps1 | 7 +- .../exports/Update-AzPeeringAsn.ps1 | 7 +- .../Update-AzPeeringConnectionMonitorTest.ps1 | 7 +- .../exports/Update-AzPeeringRegisteredAsn.ps1 | 7 +- .../Update-AzPeeringRegisteredPrefix.ps1 | 7 +- .../exports/Update-AzPeeringService.ps1 | 7 +- .../generated/api/Models/CdnPeeringPrefix.cs | 16 +- .../api/Models/ConnectionMonitorTest.cs | 12 +- .../generated/api/Models/DirectConnection.cs | 4 +- .../generated/api/Models/ErrorResponse.cs | 4 +- .../api/Models/ExchangeConnection.cs | 4 +- .../generated/api/Models/Operation.cs | 12 +- .../api/Models/OperationProperties.cs | 2 +- .../generated/api/Models/PeerAsn.cs | 10 +- .../generated/api/Models/Peering.cs | 26 +- .../generated/api/Models/PeeringLocation.cs | 10 +- .../generated/api/Models/PeeringProperties.cs | 6 +- .../api/Models/PeeringRegisteredAsn.cs | 10 +- .../api/Models/PeeringRegisteredPrefix.cs | 14 +- .../generated/api/Models/PeeringService.cs | 18 +- .../api/Models/PeeringServiceCountry.cs | 6 +- .../api/Models/PeeringServiceLocation.cs | 6 +- .../api/Models/PeeringServicePrefix.cs | 16 +- .../api/Models/PeeringServiceProperties.cs | 6 +- .../api/Models/PeeringServiceProvider.cs | 6 +- ...ringServiceConnectionMonitor_Initialize.cs | 2 +- .../cmdlets/RemoveAzPeeringAsn_Delete.cs | 4 +- .../RemoveAzPeeringAsn_DeleteViaIdentity.cs | 4 +- ...veAzPeeringConnectionMonitorTest_Delete.cs | 4 +- ...ConnectionMonitorTest_DeleteViaIdentity.cs | 4 +- ...torTest_DeleteViaIdentityPeeringService.cs | 4 +- .../RemoveAzPeeringRegisteredAsn_Delete.cs | 4 +- ...zPeeringRegisteredAsn_DeleteViaIdentity.cs | 4 +- ...gRegisteredAsn_DeleteViaIdentityPeering.cs | 4 +- .../RemoveAzPeeringRegisteredPrefix_Delete.cs | 4 +- ...eringRegisteredPrefix_DeleteViaIdentity.cs | 4 +- ...gisteredPrefix_DeleteViaIdentityPeering.cs | 4 +- .../RemoveAzPeeringServicePrefix_Delete.cs | 4 +- ...zPeeringServicePrefix_DeleteViaIdentity.cs | 4 +- ...ePrefix_DeleteViaIdentityPeeringService.cs | 4 +- .../cmdlets/RemoveAzPeeringService_Delete.cs | 4 +- ...emoveAzPeeringService_DeleteViaIdentity.cs | 4 +- .../cmdlets/RemoveAzPeering_Delete.cs | 4 +- .../RemoveAzPeering_DeleteViaIdentity.cs | 4 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 1 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../exports/Get-AzPineconeOrganization.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 3 +- ...rassignedidentitiesAdditionalproperties.cs | 4 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../generated/api/Models/Operation.cs | 8 +- .../api/Models/OrganizationProperties.cs | 4 +- .../api/Models/OrganizationResource.cs | 60 ++- .../generated/api/Models/Resource.cs | 30 +- .../generated/api/Models/TrackedResource.cs | 42 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 1 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../exports/Get-AzPortalDashboard.ps1 | 3 +- .../exports/New-AzPortalDashboard.ps1 | 20 +- .../exports/ProxyCmdletDefinitions.ps1 | 36 +- .../exports/Remove-AzPortalDashboard.ps1 | 3 +- .../exports/Set-AzPortalDashboard.ps1 | 3 +- .../exports/Update-AzPortalDashboard.ps1 | 7 +- .../generated/api/Models/Dashboard.cs | 22 +- .../generated/api/Models/DashboardParts.cs | 2 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../api/Models/MarkdownPartMetadata.cs | 6 +- .../Models/MarkdownPartMetadataSettings.cs | 2 +- .../generated/api/Models/Operation.cs | 8 +- .../generated/api/Models/Resource.cs | 12 +- .../generated/api/Models/TrackedResource.cs | 20 +- .../cmdlets/RemoveAzPortalDashboard_Delete.cs | 4 +- ...moveAzPortalDashboard_DeleteViaIdentity.cs | 4 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 1 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../internal/ProxyCmdletDefinitions.ps1 | 4 +- .../internal/Set-AzPortalDashboard.ps1 | 4 +- .../Get-AzProviderHubCustomRollout.ps1 | 5 +- .../Get-AzProviderHubDefaultRollout.ps1 | 3 +- ...-AzProviderHubNotificationRegistration.ps1 | 3 +- .../Get-AzProviderHubProviderRegistration.ps1 | 3 +- ...-AzProviderHubResourceTypeRegistration.ps1 | 3 +- .../exports/Get-AzProviderHubSku.ps1 | 3 +- .../Invoke-AzProviderHubManifestCheckin.ps1 | 3 +- .../New-AzProviderHubCustomRollout.ps1 | 3 +- .../New-AzProviderHubDefaultRollout.ps1 | 3 +- .../exports/New-AzProviderHubManifest.ps1 | 3 +- ...-AzProviderHubNotificationRegistration.ps1 | 3 +- .../New-AzProviderHubProviderRegistration.ps1 | 3 +- ...-AzProviderHubResourceTypeRegistration.ps1 | 3 +- .../exports/New-AzProviderHubSku.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 77 +-- .../Remove-AzProviderHubDefaultRollout.ps1 | 3 +- ...-AzProviderHubNotificationRegistration.ps1 | 3 +- ...move-AzProviderHubProviderRegistration.ps1 | 3 +- ...-AzProviderHubResourceTypeRegistration.ps1 | 3 +- .../exports/Remove-AzProviderHubSku.ps1 | 3 +- .../Stop-AzProviderHubDefaultRollout.ps1 | 3 +- .../Update-AzProviderHubCustomRollout.ps1 | 3 +- .../Update-AzProviderHubDefaultRollout.ps1 | 3 +- ...-AzProviderHubNotificationRegistration.ps1 | 3 +- ...date-AzProviderHubProviderRegistration.ps1 | 3 +- ...-AzProviderHubResourceTypeRegistration.ps1 | 3 +- ...roviderHubDefaultRollout_CreateExpanded.cs | 33 +- ...ViaIdentityProviderRegistrationExpanded.cs | 33 +- ...HubDefaultRollout_CreateViaJsonFilePath.cs | 33 +- ...erHubDefaultRollout_CreateViaJsonString.cs | 33 +- ...rHubProviderRegistration_CreateExpanded.cs | 33 +- ...viderRegistration_CreateViaJsonFilePath.cs | 33 +- ...roviderRegistration_CreateViaJsonString.cs | 33 +- ...ResourceTypeRegistration_CreateExpanded.cs | 33 +- ...ViaIdentityProviderRegistrationExpanded.cs | 33 +- ...eTypeRegistration_CreateViaJsonFilePath.cs | 33 +- ...rceTypeRegistration_CreateViaJsonString.cs | 33 +- ...emoveAzProviderHubDefaultRollout_Delete.cs | 4 +- ...iderHubDefaultRollout_DeleteViaIdentity.cs | 4 +- ...t_DeleteViaIdentityProviderRegistration.cs | 4 +- ...viderHubNotificationRegistration_Delete.cs | 4 +- ...ificationRegistration_DeleteViaIdentity.cs | 4 +- ...n_DeleteViaIdentityProviderRegistration.cs | 4 +- .../RemoveAzProviderHubOperation_Delete.cs | 4 +- ...zProviderHubOperation_DeleteViaIdentity.cs | 4 +- ...zProviderHubProviderRegistration_Delete.cs | 4 +- ...bProviderRegistration_DeleteViaIdentity.cs | 4 +- ...viderHubResourceTypeRegistration_Delete.cs | 4 +- ...ourceTypeRegistration_DeleteViaIdentity.cs | 4 +- ...n_DeleteViaIdentityProviderRegistration.cs | 4 +- ...derHubSkuNestedResourceTypeFirst_Delete.cs | 4 +- ...stedResourceTypeFirst_DeleteViaIdentity.cs | 4 +- ...t_DeleteViaIdentityProviderRegistration.cs | 4 +- ...leteViaIdentityResourcetypeRegistration.cs | 4 +- ...eteViaIdentityResourcetypeRegistration1.cs | 4 +- ...erHubSkuNestedResourceTypeSecond_Delete.cs | 4 +- ...tedResourceTypeSecond_DeleteViaIdentity.cs | 4 +- ...d_DeleteViaIdentityProviderRegistration.cs | 4 +- ...leteViaIdentityResourcetypeRegistration.cs | 4 +- ...eteViaIdentityResourcetypeRegistration1.cs | 4 +- ...eteViaIdentityResourcetypeRegistration2.cs | 4 +- ...derHubSkuNestedResourceTypeThird_Delete.cs | 4 +- ...stedResourceTypeThird_DeleteViaIdentity.cs | 4 +- ...d_DeleteViaIdentityProviderRegistration.cs | 4 +- ...leteViaIdentityResourcetypeRegistration.cs | 4 +- ...eteViaIdentityResourcetypeRegistration1.cs | 4 +- ...eteViaIdentityResourcetypeRegistration2.cs | 4 +- ...eteViaIdentityResourcetypeRegistration3.cs | 4 +- .../cmdlets/RemoveAzProviderHubSku_Delete.cs | 4 +- ...emoveAzProviderHubSku_DeleteViaIdentity.cs | 4 +- ...u_DeleteViaIdentityProviderRegistration.cs | 4 +- ...leteViaIdentityResourcetypeRegistration.cs | 4 +- .../StopAzProviderHubDefaultRollout_Stop.cs | 2 +- ...oviderHubDefaultRollout_StopViaIdentity.cs | 2 +- ...out_StopViaIdentityProviderRegistration.cs | 2 +- ...roviderHubDefaultRollout_UpdateExpanded.cs | 33 +- ...efaultRollout_UpdateViaIdentityExpanded.cs | 33 +- ...ViaIdentityProviderRegistrationExpanded.cs | 33 +- ...rHubProviderRegistration_UpdateExpanded.cs | 33 +- ...rRegistration_UpdateViaIdentityExpanded.cs | 33 +- ...ResourceTypeRegistration_UpdateExpanded.cs | 33 +- ...eRegistration_UpdateViaIdentityExpanded.cs | 33 +- ...ViaIdentityProviderRegistrationExpanded.cs | 33 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- ...dd-AzPurviewAccountRootCollectionAdmin.ps1 | 3 +- .../exports/Get-AzPurviewAccount.ps1 | 3 +- .../exports/Get-AzPurviewAccountKey.ps1 | 3 +- .../exports/Get-AzPurviewDefaultAccount.ps1 | 3 +- .../exports/New-AzPurviewAccount.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 30 +- .../exports/Remove-AzPurviewAccount.ps1 | 3 +- .../Remove-AzPurviewDefaultAccount.ps1 | 3 +- .../exports/Set-AzPurviewDefaultAccount.ps1 | 3 +- .../Test-AzPurviewAccountNameAvailability.ps1 | 3 +- .../exports/Update-AzPurviewAccount.ps1 | 3 +- ...wAccountRootCollectionAdmin_AddExpanded.cs | 2 +- ...tCollectionAdmin_AddViaIdentityExpanded.cs | 2 +- ...tRootCollectionAdmin_AddViaJsonFilePath.cs | 2 +- ...untRootCollectionAdmin_AddViaJsonString.cs | 2 +- .../NewAzPurviewAccount_CreateExpanded.cs | 33 +- ...wAzPurviewAccount_CreateViaJsonFilePath.cs | 33 +- ...NewAzPurviewAccount_CreateViaJsonString.cs | 33 +- .../cmdlets/RemoveAzPurviewAccount_Delete.cs | 18 +- ...emoveAzPurviewAccount_DeleteViaIdentity.cs | 18 +- .../RemoveAzPurviewDefaultAccount_Remove.cs | 4 +- .../UpdateAzPurviewAccount_UpdateExpanded.cs | 33 +- ...urviewAccount_UpdateViaIdentityExpanded.cs | 33 +- ...eAzPurviewAccount_UpdateViaJsonFilePath.cs | 33 +- ...ateAzPurviewAccount_UpdateViaJsonString.cs | 33 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- .../Get-AzPurviewClassificationRule.ps1 | 3 +- ...Get-AzPurviewClassificationRuleVersion.ps1 | 3 +- .../exports/Get-AzPurviewDataSource.ps1 | 3 +- .../exports/Get-AzPurviewFilter.ps1 | 3 +- .../Get-AzPurviewKeyVaultConnection.ps1 | 3 +- .../exports/Get-AzPurviewScan.ps1 | 3 +- .../Get-AzPurviewScanResultScanHistory.ps1 | 3 +- .../exports/Get-AzPurviewScanRuleset.ps1 | 3 +- .../Get-AzPurviewSystemScanRuleset.ps1 | 3 +- .../Get-AzPurviewSystemScanRulesetLatest.ps1 | 3 +- .../Get-AzPurviewSystemScanRulesetVersion.ps1 | 3 +- .../exports/Get-AzPurviewTrigger.ps1 | 3 +- ...lassificationRuleClassificationVersion.ps1 | 3 +- .../New-AzPurviewClassificationRule.ps1 | 3 +- .../exports/New-AzPurviewDataSource.ps1 | 3 +- .../exports/New-AzPurviewFilter.ps1 | 3 +- .../New-AzPurviewKeyVaultConnection.ps1 | 3 +- .../exports/New-AzPurviewScan.ps1 | 3 +- .../exports/New-AzPurviewScanRuleset.ps1 | 3 +- .../exports/New-AzPurviewTrigger.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 105 ++-- .../Remove-AzPurviewClassificationRule.ps1 | 3 +- .../exports/Remove-AzPurviewDataSource.ps1 | 3 +- .../Remove-AzPurviewKeyVaultConnection.ps1 | 3 +- .../exports/Remove-AzPurviewScan.ps1 | 3 +- .../exports/Remove-AzPurviewScanRuleset.ps1 | 3 +- .../exports/Remove-AzPurviewTrigger.ps1 | 3 +- .../exports/Start-AzPurviewScanResultScan.ps1 | 3 +- .../exports/Stop-AzPurviewScanResultScan.ps1 | 3 +- .../Update-AzPurviewClassificationRule.ps1 | 3 +- .../exports/Update-AzPurviewDataSource.ps1 | 3 +- .../exports/Update-AzPurviewFilter.ps1 | 3 +- .../Update-AzPurviewKeyVaultConnection.ps1 | 3 +- .../exports/Update-AzPurviewScan.ps1 | 3 +- .../exports/Update-AzPurviewScanRuleset.ps1 | 3 +- .../exports/Update-AzPurviewTrigger.ps1 | 3 +- .../Purviewdata.Autorest/generated/Module.cs | 4 +- ...emoveAzPurviewClassificationRule_Delete.cs | 2 +- .../RemoveAzPurviewDataSource_Delete.cs | 2 +- ...emoveAzPurviewKeyVaultConnection_Delete.cs | 2 +- .../RemoveAzPurviewScanRuleset_Delete.cs | 2 +- .../cmdlets/RemoveAzPurviewScan_Delete.cs | 2 +- .../cmdlets/RemoveAzPurviewTrigger_Delete.cs | 2 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- .../exports/Get-AzQuantumOffering.ps1 | 3 +- .../exports/Get-AzQuantumWorkspace.ps1 | 3 +- .../exports/New-AzQuantumWorkspace.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 26 +- .../exports/Remove-AzQuantumWorkspace.ps1 | 3 +- ...est-AzQuantumWorkspaceNameAvailability.ps1 | 3 +- .../exports/Update-AzQuantumWorkspace.ps1 | 7 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../api/Models/ProviderDescription.cs | 20 +- .../api/Models/ProviderProperties.cs | 8 +- .../generated/api/Models/QuantumWorkspace.cs | 48 +- .../generated/api/Models/TrackedResource.cs | 8 +- .../NewAzQuantumWorkspace_CreateExpanded.cs | 33 +- ...zQuantumWorkspace_CreateViaJsonFilePath.cs | 33 +- ...wAzQuantumWorkspace_CreateViaJsonString.cs | 33 +- .../RemoveAzQuantumWorkspace_Delete.cs | 18 +- ...oveAzQuantumWorkspace_DeleteViaIdentity.cs | 18 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 1 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../Quota.Autorest/Properties/AssemblyInfo.cs | 28 -- .../Quota.Autorest/exports/Get-AzQuota.ps1 | 11 + .../exports/Get-AzQuotaOperation.ps1 | 11 + .../exports/Get-AzQuotaRequestStatus.ps1 | 11 + .../exports/Get-AzQuotaUsage.ps1 | 11 + .../Quota.Autorest/exports/New-AzQuota.ps1 | 19 +- .../exports/New-AzQuotaLimitObject.ps1 | 6 + .../exports/ProxyCmdletDefinitions.ps1 | 80 ++- .../Quota.Autorest/exports/Update-AzQuota.ps1 | 11 + .../api/Models/CurrentQuotaLimitBase.cs | 10 +- .../Models/CurrentUsagesBase.PowerShell.cs | 4 +- .../generated/api/Models/CurrentUsagesBase.cs | 12 +- .../generated/api/Models/ExceptionResponse.cs | 2 +- .../generated/api/Models/LimitObject.cs | 2 +- .../generated/api/Models/QuotaProperties.cs | 2 +- .../api/Models/QuotaRequestDetails.cs | 12 +- ...RequestOneResourceProperties.PowerShell.cs | 4 +- .../QuotaRequestOneResourceProperties.cs | 8 +- ...estOneResourceSubmitResponse.PowerShell.cs | 4 +- .../QuotaRequestOneResourceSubmitResponse.cs | 26 +- .../api/Models/QuotaRequestProperties.cs | 4 +- .../QuotaRequestStatusDetails.PowerShell.cs | 4 +- .../api/Models/QuotaRequestStatusDetails.cs | 4 +- .../api/Models/QuotaRequestSubmitResponse.cs | 12 +- ...uotaRequestSubmitResponse202.PowerShell.cs | 4 +- .../Models/QuotaRequestSubmitResponse202.cs | 14 +- .../generated/api/Models/SubRequest.cs | 2 +- .../api/Models/UsagesProperties.PowerShell.cs | 4 +- .../generated/api/Models/UsagesProperties.cs | 2 +- .../Quota.Autorest/generated/api/Quota.cs | 72 +-- .../generated/cmdlets/GetAzQuota_List.cs | 4 +- .../cmdlets/NewAzQuota_CreateExpanded.cs | 6 +- .../NewAzQuota_CreateViaIdentityExpanded.cs | 6 +- .../NewAzQuota_CreateViaJsonFilePath.cs | 6 +- .../cmdlets/NewAzQuota_CreateViaJsonString.cs | 6 +- .../cmdlets/UpdateAzQuota_UpdateExpanded.cs | 4 +- ...UpdateAzQuota_UpdateViaIdentityExpanded.cs | 4 +- .../UpdateAzQuota_UpdateViaJsonFilePath.cs | 4 +- .../UpdateAzQuota_UpdateViaJsonString.cs | 4 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 24 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 5 + .../runtime/BuildTime/PsAttributes.cs | 5 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../Quota/Quota.Autorest}/resources/README.md | 0 .../exports/Get-AzRelayAuthorizationRule.ps1 | 3 +- .../exports/Get-AzRelayHybridConnection.ps1 | 3 +- .../Relay.Autorest/exports/Get-AzRelayKey.ps1 | 3 +- .../exports/Get-AzRelayNamespace.ps1 | 3 +- .../Get-AzRelayNamespaceNetworkRuleSet.ps1 | 3 +- .../Relay.Autorest/exports/Get-AzWcfRelay.ps1 | 3 +- .../exports/New-AzRelayAuthorizationRule.ps1 | 3 +- .../exports/New-AzRelayHybridConnection.ps1 | 3 +- .../Relay.Autorest/exports/New-AzRelayKey.ps1 | 3 +- .../exports/New-AzRelayNamespace.ps1 | 3 +- .../Relay.Autorest/exports/New-AzWcfRelay.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 63 +-- .../Remove-AzRelayAuthorizationRule.ps1 | 3 +- .../Remove-AzRelayHybridConnection.ps1 | 3 +- .../exports/Remove-AzRelayNamespace.ps1 | 3 +- .../exports/Remove-AzWcfRelay.ps1 | 3 +- .../exports/Set-AzRelayAuthorizationRule.ps1 | 3 +- .../exports/Set-AzRelayHybridConnection.ps1 | 3 +- .../Set-AzRelayNamespaceNetworkRuleSet.ps1 | 3 +- .../Relay.Autorest/exports/Set-AzWcfRelay.ps1 | 3 +- .../exports/Test-AzRelayName.ps1 | 3 +- .../exports/Update-AzRelayNamespace.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../exports/Get-AzReservation.ps1 | 3 +- .../Get-AzReservationAvailableScope.ps1 | 3 +- .../exports/Get-AzReservationCatalog.ps1 | 3 +- .../exports/Get-AzReservationHistory.ps1 | 3 +- .../exports/Get-AzReservationOrder.ps1 | 3 +- .../exports/Get-AzReservationOrderId.ps1 | 3 +- .../exports/Get-AzReservationQuote.ps1 | 3 +- ...Invoke-AzReservationArchiveReservation.ps1 | 3 +- .../Invoke-AzReservationCalculateExchange.ps1 | 3 +- .../Invoke-AzReservationCalculateRefund.ps1 | 3 +- .../exports/Invoke-AzReservationExchange.ps1 | 3 +- .../exports/Invoke-AzReservationReturn.ps1 | 3 +- ...voke-AzReservationUnarchiveReservation.ps1 | 3 +- .../exports/Merge-AzReservation.ps1 | 3 +- .../exports/Move-AzReservationDirectory.ps1 | 3 +- .../exports/New-AzReservation.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 54 +- .../exports/Split-AzReservation.ps1 | 3 +- .../exports/Update-AzReservation.ps1 | 3 +- ...rvationAvailableScope_AvailableExpanded.cs | 33 +- ...lableScope_AvailableViaIdentityExpanded.cs | 33 +- ...ableViaIdentityReservationOrderExpanded.cs | 33 +- ...AvailableScope_AvailableViaJsonFilePath.cs | 33 +- ...onAvailableScope_AvailableViaJsonString.cs | 33 +- ...AzReservationArchiveReservation_Archive.cs | 2 +- ...onArchiveReservation_ArchiveViaIdentity.cs | 2 +- ...tion_ArchiveViaIdentityReservationOrder.cs | 2 +- ...servationCalculateExchange_PostExpanded.cs | 33 +- ...onCalculateExchange_PostViaJsonFilePath.cs | 33 +- ...tionCalculateExchange_PostViaJsonString.cs | 33 +- ...nvokeAzReservationExchange_PostExpanded.cs | 33 +- ...ReservationExchange_PostViaJsonFilePath.cs | 33 +- ...AzReservationExchange_PostViaJsonString.cs | 33 +- .../InvokeAzReservationReturn_PostExpanded.cs | 33 +- ...servationReturn_PostViaIdentityExpanded.cs | 33 +- ...AzReservationReturn_PostViaJsonFilePath.cs | 33 +- ...keAzReservationReturn_PostViaJsonString.cs | 33 +- ...servationUnarchiveReservation_Unarchive.cs | 2 +- ...archiveReservation_UnarchiveViaIdentity.cs | 2 +- ...on_UnarchiveViaIdentityReservationOrder.cs | 2 +- .../cmdlets/MergeAzReservation_Merge.cs | 38 +- .../MergeAzReservation_MergeExpanded.cs | 38 +- .../MergeAzReservation_MergeViaIdentity.cs | 38 +- ...eAzReservation_MergeViaIdentityExpanded.cs | 38 +- ...MergeAzReservation_MergeViaJsonFilePath.cs | 38 +- .../MergeAzReservation_MergeViaJsonString.cs | 38 +- .../NewAzReservation_PurchaseExpanded.cs | 33 +- ...Reservation_PurchaseViaIdentityExpanded.cs | 33 +- ...ewAzReservation_PurchaseViaJsonFilePath.cs | 33 +- .../NewAzReservation_PurchaseViaJsonString.cs | 33 +- .../SplitAzReservation_SplitExpanded.cs | 38 +- ...tAzReservation_SplitViaIdentityExpanded.cs | 38 +- ...SplitAzReservation_SplitViaJsonFilePath.cs | 38 +- .../SplitAzReservation_SplitViaJsonString.cs | 38 +- .../UpdateAzReservation_UpdateExpanded.cs | 33 +- ...AzReservation_UpdateViaIdentityExpanded.cs | 33 +- ...dateViaIdentityReservationOrderExpanded.cs | 33 +- ...dateAzReservation_UpdateViaJsonFilePath.cs | 33 +- ...UpdateAzReservation_UpdateViaJsonString.cs | 33 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- .../exports/Get-AzResourceGraphQuery.ps1 | 3 +- .../exports/New-AzResourceGraphQuery.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 12 +- .../exports/Remove-AzResourceGraphQuery.ps1 | 3 +- .../exports/Update-AzResourceGraphQuery.ps1 | 3 +- .../api/Models/GraphQueryResource.cs | 40 +- .../RemoveAzResourceGraphQuery_Delete.cs | 4 +- ...eAzResourceGraphQuery_DeleteViaIdentity.cs | 4 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 1 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../internal/New-AzResourceGraphQuery.ps1 | 4 +- .../internal/ProxyCmdletDefinitions.ps1 | 8 +- .../internal/Update-AzResourceGraphQuery.ps1 | 4 +- .../exports/Get-AzRoleAssignmentSchedule.ps1 | 3 +- .../Get-AzRoleAssignmentScheduleInstance.ps1 | 3 +- .../Get-AzRoleAssignmentScheduleRequest.ps1 | 3 +- .../exports/Get-AzRoleEligibilitySchedule.ps1 | 3 +- .../Get-AzRoleEligibilityScheduleInstance.ps1 | 3 +- .../Get-AzRoleEligibilityScheduleRequest.ps1 | 3 +- .../Get-AzRoleEligibleChildResource.ps1 | 3 +- .../exports/Get-AzRoleManagementPolicy.ps1 | 3 +- .../Get-AzRoleManagementPolicyAssignment.ps1 | 3 +- .../New-AzRoleAssignmentScheduleRequest.ps1 | 3 +- .../New-AzRoleEligibilityScheduleRequest.ps1 | 3 +- .../New-AzRoleManagementPolicyAssignment.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 60 +-- .../exports/Remove-AzRoleManagementPolicy.ps1 | 3 +- ...emove-AzRoleManagementPolicyAssignment.ps1 | 3 +- .../Stop-AzRoleAssignmentScheduleRequest.ps1 | 3 +- .../Stop-AzRoleEligibilityScheduleRequest.ps1 | 3 +- ...Update-AzRoleAssignmentScheduleRequest.ps1 | 3 +- ...pdate-AzRoleEligibilityScheduleRequest.ps1 | 3 +- .../exports/Update-AzRoleManagementPolicy.ps1 | 3 +- ...pdate-AzRoleManagementPolicyAssignment.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../exports/Get-AzDataBoundaryScope.ps1 | 3 +- .../exports/Get-AzDataBoundaryTenant.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 9 +- .../exports/Set-AzDataBoundary.ps1 | 3 +- .../DataBoundary.Autorest/generated/Module.cs | 4 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- .../exports/Add-AzADAppPermission.ps1 | 3 +- .../exports/Add-AzADGroupMember.ps1 | 3 +- .../exports/Get-AzADAppCredential.ps1 | 3 +- .../Get-AzADAppFederatedCredential.ps1 | 3 +- .../exports/Get-AzADAppPermission.ps1 | 3 +- .../exports/Get-AzADApplication.ps1 | 3 +- .../exports/Get-AzADGroup.ps1 | 3 +- .../exports/Get-AzADGroupMember.ps1 | 3 +- .../exports/Get-AzADGroupOwner.ps1 | 3 +- .../exports/Get-AzADOrganization.ps1 | 3 +- .../exports/Get-AzADServicePrincipal.ps1 | 3 +- ...-AzADServicePrincipalAppRoleAssignment.ps1 | 3 +- .../exports/Get-AzADSpCredential.ps1 | 3 +- .../MSGraph.Autorest/exports/Get-AzADUser.ps1 | 3 +- .../exports/New-AzADAppCredential.ps1 | 3 +- .../New-AzADAppFederatedCredential.ps1 | 3 +- .../exports/New-AzADApplication.ps1 | 3 +- .../exports/New-AzADGroup.ps1 | 3 +- .../exports/New-AzADGroupOwner.ps1 | 3 +- .../exports/New-AzADServicePrincipal.ps1 | 3 +- ...-AzADServicePrincipalAppRoleAssignment.ps1 | 3 +- .../exports/New-AzADSpCredential.ps1 | 3 +- .../MSGraph.Autorest/exports/New-AzADUser.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 120 ++--- .../exports/Remove-AzADAppCredential.ps1 | 3 +- .../Remove-AzADAppFederatedCredential.ps1 | 3 +- .../exports/Remove-AzADAppPermission.ps1 | 3 +- .../exports/Remove-AzADApplication.ps1 | 3 +- .../exports/Remove-AzADGroup.ps1 | 3 +- .../exports/Remove-AzADGroupMember.ps1 | 3 +- .../exports/Remove-AzADGroupOwner.ps1 | 3 +- .../exports/Remove-AzADServicePrincipal.ps1 | 3 +- ...-AzADServicePrincipalAppRoleAssignment.ps1 | 3 +- .../exports/Remove-AzADSpCredential.ps1 | 3 +- .../exports/Remove-AzADUser.ps1 | 3 +- .../Update-AzADAppFederatedCredential.ps1 | 3 +- .../exports/Update-AzADApplication.ps1 | 3 +- .../exports/Update-AzADGroup.ps1 | 3 +- .../exports/Update-AzADServicePrincipal.ps1 | 3 +- ...-AzADServicePrincipalAppRoleAssignment.ps1 | 3 +- .../exports/Update-AzADUser.ps1 | 3 +- .../MSGraph.Autorest/generated/Module.cs | 4 +- .../NewAzADGroupGraphRefMember_Create.cs | 2 +- ...wAzADGroupGraphRefMember_CreateExpanded.cs | 2 +- ...oupGraphRefMember_CreateViaJsonFilePath.cs | 2 +- ...GroupGraphRefMember_CreateViaJsonString.cs | 2 +- ...ADGroupOwnerGraphBPreRef_CreateExpanded.cs | 2 +- ...RemoveAzADAppFederatedCredential_Delete.cs | 2 +- ...zADApplicationKey_RemoveViaJsonFilePath.cs | 2 +- ...eAzADApplicationKey_RemoveViaJsonString.cs | 2 +- ...plicationPassword_RemoveViaJsonFilePath.cs | 2 +- ...ApplicationPassword_RemoveViaJsonString.cs | 2 +- .../cmdlets/RemoveAzADGroupOwner_Delete.cs | 2 +- ...ervicePrincipalAppRoleAssignment_Delete.cs | 2 +- ...rvicePrincipalKey_RemoveViaJsonFilePath.cs | 2 +- ...ServicePrincipalKey_RemoveViaJsonString.cs | 2 +- ...PrincipalPassword_RemoveViaJsonFilePath.cs | 2 +- ...cePrincipalPassword_RemoveViaJsonString.cs | 2 +- .../RemoveAzAdApplicationKey_Remove.cs | 2 +- ...RemoveAzAdApplicationKey_RemoveExpanded.cs | 2 +- .../RemoveAzAdApplicationPassword_Remove.cs | 2 +- ...eAzAdApplicationPassword_RemoveExpanded.cs | 2 +- .../cmdlets/RemoveAzAdApplication_Delete.cs | 2 +- .../RemoveAzAdGroupRefMember_Delete.cs | 2 +- .../cmdlets/RemoveAzAdGroup_Delete.cs | 2 +- .../RemoveAzAdServicePrincipalKey_Remove.cs | 2 +- ...eAzAdServicePrincipalKey_RemoveExpanded.cs | 2 +- ...moveAzAdServicePrincipalPassword_Remove.cs | 2 +- ...ServicePrincipalPassword_RemoveExpanded.cs | 2 +- .../RemoveAzAdServicePrincipal_Delete.cs | 2 +- .../cmdlets/RemoveAzAdUser_Delete.cs | 2 +- ...ADAppFederatedCredential_UpdateExpanded.cs | 2 +- ...deratedCredential_UpdateViaJsonFilePath.cs | 2 +- ...FederatedCredential_UpdateViaJsonString.cs | 2 +- ...teAzADApplication_UpdateViaJsonFilePath.cs | 2 +- ...dateAzADApplication_UpdateViaJsonString.cs | 2 +- .../UpdateAzADGroup_UpdateViaJsonFilePath.cs | 2 +- .../UpdateAzADGroup_UpdateViaJsonString.cs | 2 +- ...ervicePrincipalAppRoleAssignment_Update.cs | 2 +- ...incipalAppRoleAssignment_UpdateExpanded.cs | 2 +- ...AppRoleAssignment_UpdateViaJsonFilePath.cs | 2 +- ...alAppRoleAssignment_UpdateViaJsonString.cs | 2 +- ...DServicePrincipal_UpdateViaJsonFilePath.cs | 2 +- ...zADServicePrincipal_UpdateViaJsonString.cs | 2 +- .../UpdateAzADUser_UpdateViaJsonFilePath.cs | 2 +- .../UpdateAzADUser_UpdateViaJsonString.cs | 2 +- .../UpdateAzAdApplication_UpdateExpanded.cs | 2 +- .../cmdlets/UpdateAzAdGroup_UpdateExpanded.cs | 2 +- ...dateAzAdServicePrincipal_UpdateExpanded.cs | 2 +- .../cmdlets/UpdateAzAdUser_UpdateExpanded.cs | 2 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- .../exports/Get-AzPolicyAssignment.ps1 | 3 +- .../exports/Get-AzPolicyDefinition.ps1 | 3 +- .../exports/Get-AzPolicyExemption.ps1 | 3 +- .../exports/Get-AzPolicySetDefinition.ps1 | 3 +- .../exports/New-AzPolicyAssignment.ps1 | 3 +- .../exports/New-AzPolicyDefinition.ps1 | 3 +- .../exports/New-AzPolicyExemption.ps1 | 3 +- .../exports/New-AzPolicySetDefinition.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 48 +- .../exports/Remove-AzPolicyAssignment.ps1 | 3 +- .../exports/Remove-AzPolicyDefinition.ps1 | 3 +- .../exports/Remove-AzPolicyExemption.ps1 | 3 +- .../exports/Remove-AzPolicySetDefinition.ps1 | 3 +- .../exports/Update-AzPolicyAssignment.ps1 | 3 +- .../exports/Update-AzPolicyDefinition.ps1 | 3 +- .../exports/Update-AzPolicyExemption.ps1 | 3 +- .../exports/Update-AzPolicySetDefinition.ps1 | 3 +- .../Policy.Autorest/generated/Module.cs | 4 +- .../RemoveAzPolicyAssignment_Delete.cs | 2 +- .../RemoveAzPolicyAssignment_Delete1.cs | 2 +- ...oveAzPolicyAssignment_DeleteViaIdentity.cs | 2 +- .../RemoveAzPolicyDefinitionVersion_Delete.cs | 4 +- ...RemoveAzPolicyDefinitionVersion_Delete1.cs | 4 +- ...licyDefinitionVersion_DeleteViaIdentity.cs | 4 +- ...icyDefinitionVersion_DeleteViaIdentity1.cs | 4 +- ...rsion_DeleteViaIdentityPolicyDefinition.cs | 4 +- ...sion_DeleteViaIdentityPolicyDefinition1.cs | 4 +- .../RemoveAzPolicyDefinition_Delete.cs | 4 +- .../RemoveAzPolicyDefinition_Delete1.cs | 4 +- ...oveAzPolicyDefinition_DeleteViaIdentity.cs | 4 +- ...veAzPolicyDefinition_DeleteViaIdentity1.cs | 4 +- .../cmdlets/RemoveAzPolicyExemption_Delete.cs | 4 +- ...moveAzPolicyExemption_DeleteViaIdentity.cs | 4 +- ...moveAzPolicySetDefinitionVersion_Delete.cs | 4 +- ...oveAzPolicySetDefinitionVersion_Delete1.cs | 4 +- ...ySetDefinitionVersion_DeleteViaIdentity.cs | 4 +- ...SetDefinitionVersion_DeleteViaIdentity1.cs | 4 +- ...on_DeleteViaIdentityPolicySetDefinition.cs | 4 +- ...n_DeleteViaIdentityPolicySetDefinition1.cs | 4 +- .../RemoveAzPolicySetDefinition_Delete.cs | 4 +- .../RemoveAzPolicySetDefinition_Delete1.cs | 4 +- ...AzPolicySetDefinition_DeleteViaIdentity.cs | 4 +- ...zPolicySetDefinition_DeleteViaIdentity1.cs | 4 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- .../exports/Add-AzScVmmVMDisk.ps1 | 3 +- .../exports/Add-AzScVmmVMNic.ps1 | 3 +- .../exports/Get-AzScVmmAvailabilitySet.ps1 | 3 +- .../exports/Get-AzScVmmCloud.ps1 | 3 +- .../exports/Get-AzScVmmInventoryItem.ps1 | 3 +- .../exports/Get-AzScVmmServer.ps1 | 3 +- .../ScVmm.Autorest/exports/Get-AzScVmmVM.ps1 | 3 +- .../exports/Get-AzScVmmVMDisk.ps1 | 3 +- .../exports/Get-AzScVmmVMExtension.ps1 | 3 +- .../exports/Get-AzScVmmVMGuestAgent.ps1 | 3 +- .../exports/Get-AzScVmmVMNic.ps1 | 3 +- .../exports/Get-AzScVmmVMTemplate.ps1 | 3 +- .../exports/Get-AzScVmmVirtualNetwork.ps1 | 3 +- .../exports/New-AzScVmmAvailabilitySet.ps1 | 3 +- .../exports/New-AzScVmmCloud.ps1 | 3 +- .../exports/New-AzScVmmServer.ps1 | 3 +- .../ScVmm.Autorest/exports/New-AzScVmmVM.ps1 | 3 +- .../exports/New-AzScVmmVMCheckpoint.ps1 | 3 +- .../exports/New-AzScVmmVMExtension.ps1 | 3 +- .../exports/New-AzScVmmVMGuestAgent.ps1 | 3 +- .../exports/New-AzScVmmVMTemplate.ps1 | 3 +- .../exports/New-AzScVmmVirtualNetwork.ps1 | 3 +- .../exports/ProxyCmdletDefinitions.ps1 | 135 ++--- .../exports/Remove-AzScVmmAvailabilitySet.ps1 | 3 +- .../exports/Remove-AzScVmmCloud.ps1 | 3 +- .../exports/Remove-AzScVmmServer.ps1 | 3 +- .../exports/Remove-AzScVmmVM.ps1 | 3 +- .../exports/Remove-AzScVmmVMCheckpoint.ps1 | 3 +- .../exports/Remove-AzScVmmVMDisk.ps1 | 3 +- .../exports/Remove-AzScVmmVMExtension.ps1 | 3 +- .../exports/Remove-AzScVmmVMNic.ps1 | 3 +- .../exports/Remove-AzScVmmVMTemplate.ps1 | 3 +- .../exports/Remove-AzScVmmVirtualNetwork.ps1 | 3 +- .../exports/Restart-AzScVmmVM.ps1 | 3 +- .../exports/Restore-AzScVmmVMCheckpoint.ps1 | 3 +- .../exports/Start-AzScVmmVM.ps1 | 3 +- .../ScVmm.Autorest/exports/Stop-AzScVmmVM.ps1 | 3 +- .../exports/Update-AzScVmmAvailabilitySet.ps1 | 3 +- .../exports/Update-AzScVmmCloud.ps1 | 3 +- .../exports/Update-AzScVmmServer.ps1 | 3 +- .../exports/Update-AzScVmmVM.ps1 | 3 +- .../exports/Update-AzScVmmVMDisk.ps1 | 3 +- .../exports/Update-AzScVmmVMExtension.ps1 | 3 +- .../exports/Update-AzScVmmVMNic.ps1 | 3 +- .../exports/Update-AzScVmmVMTemplate.ps1 | 3 +- .../exports/Update-AzScVmmVirtualNetwork.ps1 | 3 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../generated/runtime/Context.cs | 2 +- .../Get-AzSecurityDefenderForStorage.ps1 | 11 + .../exports/ProxyCmdletDefinitions.ps1 | 22 + .../Update-AzSecurityDefenderForStorage.ps1 | 11 + .../generated/Module.cs | 4 +- .../generated/api/DefenderForStorage.cs | 12 +- .../generated/api/Models/CloudError.cs | 10 +- .../api/Models/DefenderForStorageSetting.cs | 36 +- .../DefenderForStorageSettingProperties.cs | 26 +- .../api/Models/MalwareScanningProperties.cs | 10 +- .../SensitiveDataDiscoveryProperties.cs | 10 +- ...curityDefenderForStorage_UpdateExpanded.cs | 4 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 24 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 5 + .../runtime/BuildTime/PsAttributes.cs | 5 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../resources/README.md | 0 .../Properties/AssemblyInfo.cs | 28 -- .../exports/Get-AzSecurityApiCollection.ps1 | 13 +- .../exports/Get-AzSecurityConnector.ps1 | 13 +- .../Get-AzSecurityConnectorAzureDevOpsOrg.ps1 | 13 +- ...curityConnectorAzureDevOpsOrgAvailable.ps1 | 13 +- ...-AzSecurityConnectorAzureDevOpsProject.ps1 | 13 +- ...Get-AzSecurityConnectorAzureDevOpsRepo.ps1 | 13 +- ...AzSecurityConnectorDevOpsConfiguration.ps1 | 13 +- .../Get-AzSecurityConnectorGitHubOwner.ps1 | 13 +- ...zSecurityConnectorGitHubOwnerAvailable.ps1 | 13 +- .../Get-AzSecurityConnectorGitHubRepo.ps1 | 13 +- .../Get-AzSecurityConnectorGitLabGroup.ps1 | 13 +- ...zSecurityConnectorGitLabGroupAvailable.ps1 | 13 +- .../Get-AzSecurityConnectorGitLabProject.ps1 | 13 +- .../Get-AzSecurityConnectorGitLabSubgroup.ps1 | 13 +- ...ke-AzSecurityApiCollectionApimOffboard.ps1 | 13 +- ...oke-AzSecurityApiCollectionApimOnboard.ps1 | 13 +- .../New-AzSecurityAwsEnvironmentObject.ps1 | 6 + ...urityAwsOrganizationalDataMasterObject.ps1 | 6 + ...urityAwsOrganizationalDataMemberObject.ps1 | 6 + ...urityAzureDevOpsScopeEnvironmentObject.ps1 | 6 + .../exports/New-AzSecurityConnector.ps1 | 13 +- ...tyConnectorActionableRemediationObject.ps1 | 6 + ...AzSecurityConnectorDevOpsConfiguration.ps1 | 13 +- ...AzSecurityCspmMonitorAwsOfferingObject.ps1 | 6 + ...tyCspmMonitorAzureDevOpsOfferingObject.ps1 | 6 + ...AzSecurityCspmMonitorGcpOfferingObject.ps1 | 6 + ...ecurityCspmMonitorGitLabOfferingObject.ps1 | 6 + ...ecurityCspmMonitorGithubOfferingObject.ps1 | 6 + ...zSecurityDefenderCspmAwsOfferingObject.ps1 | 6 + ...zSecurityDefenderCspmGcpOfferingObject.ps1 | 6 + ...DefenderForContainersAwsOfferingObject.ps1 | 6 + ...DefenderForContainersGcpOfferingObject.ps1 | 6 + ...yDefenderForDatabasesAwsOfferingObject.ps1 | 6 + ...yDefenderForDatabasesGcpOfferingObject.ps1 | 6 + ...ityDefenderForServersAwsOfferingObject.ps1 | 6 + ...ityDefenderForServersGcpOfferingObject.ps1 | 6 + ...urityGcpOrganizationalDataMemberObject.ps1 | 6 + ...cpOrganizationalDataOrganizationObject.ps1 | 6 + ...-AzSecurityGcpProjectEnvironmentObject.ps1 | 6 + ...AzSecurityGitHubScopeEnvironmentObject.ps1 | 6 + ...AzSecurityGitLabScopeEnvironmentObject.ps1 | 6 + ...InformationProtectionAwsOfferingObject.ps1 | 6 + .../exports/ProxyCmdletDefinitions.ps1 | 469 ++++++++++++++++-- .../exports/Remove-AzSecurityConnector.ps1 | 13 +- ...AzSecurityConnectorDevOpsConfiguration.ps1 | 13 +- .../exports/Update-AzSecurityConnector.ps1 | 13 +- ...date-AzSecurityConnectorAzureDevOpsOrg.ps1 | 13 +- ...-AzSecurityConnectorAzureDevOpsProject.ps1 | 13 +- ...ate-AzSecurityConnectorAzureDevOpsRepo.ps1 | 13 +- ...AzSecurityConnectorDevOpsConfiguration.ps1 | 13 +- .../generated/api/Models/ApiCollection.cs | 26 +- .../generated/api/Models/AzureDevOpsOrg.cs | 40 +- .../api/Models/AzureDevOpsProject.cs | 42 +- .../api/Models/AzureDevOpsRepository.cs | 46 +- .../generated/api/Models/CloudError.cs | 10 +- .../api/Models/CspmMonitorAwsOffering.cs | 2 +- .../Models/CspmMonitorAzureDevOpsOffering.cs | 2 +- .../api/Models/CspmMonitorGcpOffering.cs | 2 +- .../api/Models/CspmMonitorGitLabOffering.cs | 2 +- .../api/Models/CspmMonitorGithubOffering.cs | 2 +- .../api/Models/DefenderCspmAwsOffering.cs | 8 +- .../api/Models/DefenderCspmGcpOffering.cs | 4 +- .../DefenderForContainersAwsOffering.cs | 2 +- .../DefenderForContainersGcpOffering.cs | 2 +- .../Models/DefenderForDatabasesAwsOffering.cs | 4 +- .../Models/DefenderForDatabasesGcpOffering.cs | 4 +- .../DefenderForDevOpsAzureDevOpsOffering.cs | 2 +- .../Models/DefenderForDevOpsGitLabOffering.cs | 2 +- .../Models/DefenderForDevOpsGithubOffering.cs | 2 +- .../Models/DefenderForServersAwsOffering.cs | 8 +- .../Models/DefenderForServersGcpOffering.cs | 8 +- .../api/Models/DevOpsConfiguration.cs | 42 +- .../generated/api/Models/ErrorResponse.cs | 10 +- .../api/Models/ErrorResponseAutoGenerated.cs | 10 +- .../api/Models/GcpProjectEnvironment.cs | 4 +- .../generated/api/Models/GitHubOwner.cs | 44 +- .../generated/api/Models/GitHubRepository.cs | 48 +- .../generated/api/Models/GitLabGroup.cs | 46 +- .../generated/api/Models/GitLabProject.cs | 48 +- .../InformationProtectionAwsOffering.cs | 2 +- .../api/Models/OperationStatusResult.cs | 10 +- .../generated/api/Models/ProxyResource.cs | 6 +- .../generated/api/Models/SecurityConnector.cs | 38 +- .../generated/api/Models/TrackedResource.cs | 6 +- .../generated/api/Security.cs | 196 ++++---- ...ecurityApiCollectionApimOffboard_Delete.cs | 4 +- ...ollectionApimOffboard_DeleteViaIdentity.cs | 4 +- ...zSecurityApiCollectionApimOnboard_Azure.cs | 33 +- ...iCollectionApimOnboard_AzureViaIdentity.cs | 33 +- ...ectorDevOpsConfiguration_CreateExpanded.cs | 37 +- .../NewAzSecurityConnector_CreateExpanded.cs | 4 +- ...rityConnectorDevOpsConfiguration_Delete.cs | 18 +- ...orDevOpsConfiguration_DeleteViaIdentity.cs | 18 +- .../RemoveAzSecurityConnector_Delete.cs | 4 +- ...veAzSecurityConnector_DeleteViaIdentity.cs | 4 +- ...yConnectorAzureDevOpsOrg_UpdateExpanded.cs | 37 +- ...zureDevOpsOrg_UpdateViaIdentityExpanded.cs | 37 +- ...nectorAzureDevOpsProject_UpdateExpanded.cs | 37 +- ...DevOpsProject_UpdateViaIdentityExpanded.cs | 37 +- ...ConnectorAzureDevOpsRepo_UpdateExpanded.cs | 37 +- ...ureDevOpsRepo_UpdateViaIdentityExpanded.cs | 37 +- ...ectorDevOpsConfiguration_UpdateExpanded.cs | 37 +- ...Configuration_UpdateViaIdentityExpanded.cs | 37 +- ...pdateAzSecurityConnector_UpdateExpanded.cs | 4 +- ...rityConnector_UpdateViaIdentityExpanded.cs | 4 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 24 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 5 + .../runtime/BuildTime/PsAttributes.cs | 5 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- .../Security.Autorest}/resources/README.md | 0 .../exports/Get-AzSelfHelpDiagnostic.ps1 | 3 +- .../Get-AzSelfHelpDiscoverySolution.ps1 | 3 +- .../Get-AzSelfHelpSimplifiedSolution.ps1 | 3 +- .../exports/Get-AzSelfHelpSolution.ps1 | 3 +- .../Get-AzSelfHelpSolutionSelfHelp.ps1 | 3 +- .../exports/Get-AzSelfHelpTroubleshooter.ps1 | 3 +- ...Invoke-AzSelfHelpCheckNameAvailability.ps1 | 3 +- ...nvoke-AzSelfHelpContinueTroubleshooter.ps1 | 3 +- ...pDiscoverySolutionNlpSubscriptionScope.ps1 | 3 +- ...elfHelpDiscoverySolutionNlpTenantScope.ps1 | 3 +- .../Invoke-AzSelfHelpWarmSolutionUp.ps1 | 3 +- .../exports/New-AzSelfHelpDiagnostic.ps1 | 7 +- .../New-AzSelfHelpSimplifiedSolution.ps1 | 7 +- .../exports/New-AzSelfHelpSolution.ps1 | 7 +- .../exports/New-AzSelfHelpTroubleshooter.ps1 | 7 +- .../exports/ProxyCmdletDefinitions.ps1 | 74 ++- .../Restart-AzSelfHelpTroubleshooter.ps1 | 3 +- .../exports/Stop-AzSelfHelpTroubleshooter.ps1 | 3 +- .../exports/Update-AzSelfHelpSolution.ps1 | 7 +- .../generated/api/SelfHelp.cs | 4 +- ...SelfHelpContinueTroubleshooter_Continue.cs | 2 +- ...ContinueTroubleshooter_ContinueExpanded.cs | 2 +- ...tinueTroubleshooter_ContinueViaIdentity.cs | 2 +- ...ubleshooter_ContinueViaIdentityExpanded.cs | 2 +- ...eTroubleshooter_ContinueViaJsonFilePath.cs | 2 +- ...nueTroubleshooter_ContinueViaJsonString.cs | 2 +- .../InvokeAzSelfHelpWarmSolutionUp_Warm.cs | 2 +- ...keAzSelfHelpWarmSolutionUp_WarmExpanded.cs | 2 +- ...zSelfHelpWarmSolutionUp_WarmViaIdentity.cs | 2 +- ...pWarmSolutionUp_WarmViaIdentityExpanded.cs | 2 +- ...fHelpWarmSolutionUp_WarmViaJsonFilePath.cs | 2 +- ...elfHelpWarmSolutionUp_WarmViaJsonString.cs | 2 +- .../NewAzSelfHelpDiagnostic_CreateExpanded.cs | 33 +- ...elpDiagnostic_CreateViaIdentityExpanded.cs | 33 +- ...elfHelpDiagnostic_CreateViaJsonFilePath.cs | 33 +- ...zSelfHelpDiagnostic_CreateViaJsonString.cs | 33 +- ...lfHelpSimplifiedSolution_CreateExpanded.cs | 33 +- ...ifiedSolution_CreateViaIdentityExpanded.cs | 33 +- ...implifiedSolution_CreateViaJsonFilePath.cs | 33 +- ...pSimplifiedSolution_CreateViaJsonString.cs | 33 +- .../NewAzSelfHelpSolution_CreateExpanded.cs | 33 +- ...fHelpSolution_CreateViaIdentityExpanded.cs | 33 +- ...zSelfHelpSolution_CreateViaJsonFilePath.cs | 33 +- ...wAzSelfHelpSolution_CreateViaJsonString.cs | 33 +- .../StopAzSelfHelpTroubleshooter_End.cs | 2 +- ...AzSelfHelpTroubleshooter_EndViaIdentity.cs | 2 +- ...UpdateAzSelfHelpSolution_UpdateExpanded.cs | 33 +- ...fHelpSolution_UpdateViaIdentityExpanded.cs | 33 +- ...zSelfHelpSolution_UpdateViaJsonFilePath.cs | 33 +- ...eAzSelfHelpSolution_UpdateViaJsonString.cs | 33 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +- .../BuildTime/Models/PsProxyOutputs.cs | 5 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 1 + .../generated/runtime/Context.cs | 2 +- .../generated/runtime/MessageAttribute.cs | 11 +- .../runtime/Properties/Resources.resx | 2 +- src/Network/Network/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.NetworkSecurityPerimeter.md | 14 +- .../docs/New-AzNetworkSecurityPerimeter.md | 4 +- ...ew-AzNetworkSecurityPerimeterAccessRule.md | 4 +- ...w-AzNetworkSecurityPerimeterAssociation.md | 4 +- .../New-AzNetworkSecurityPerimeterLink.md | 4 +- ...rkSecurityPerimeterLoggingConfiguration.md | 4 +- .../New-AzNetworkSecurityPerimeterProfile.md | 4 +- .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.NetworkCloud.md | 2 +- .../docs/Update-AzNetworkCloudCluster.md | 2 +- .../Update-AzNetworkCloudClusterManager.md | 2 +- .../NetworkCloud/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 7 +- .../docs/Az.NetworkFunction.md | 8 +- .../New-AzNetworkFunctionTrafficCollector.md | 4 +- ...ate-AzNetworkFunctionCollectorPolicyTag.md | 4 +- ...te-AzNetworkFunctionTrafficCollectorTag.md | 4 +- .../NetworkFunction/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../NewRelic.Autorest/docs/Az.NewRelic.md | 4 +- .../Invoke-AzNewRelicResubscribeMonitor.md | 2 +- .../NewRelic.Autorest/resources/README.md | 11 - src/NewRelic/NewRelic/AutorestUpgradeLog.md | 2 + .../Nginx.Autorest/Properties/AssemblyInfo.cs | 6 +- src/Nginx/Nginx.Autorest/docs/Az.Nginx.md | 2 +- .../docs/Update-AzNginxDeployment.md | 2 +- src/Nginx/Nginx.Autorest/resources/README.md | 11 - src/Nginx/Nginx/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 8 +- src/Oracle/Oracle.Autorest/docs/Az.Oracle.md | 2 +- .../docs/Get-AzOracleDbVersion.md | 15 + .../Oracle.Autorest/resources/README.md | 11 - src/Oracle/Oracle/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../Orbital.Autorest/docs/Az.Orbital.md | 14 +- .../docs/New-AzOrbitalContactProfile.md | 4 +- .../docs/New-AzOrbitalSpacecraft.md | 4 +- .../docs/New-AzOrbitalSpacecraftContact.md | 4 +- .../docs/Update-AzOrbitalContactProfile.md | 4 +- .../docs/Update-AzOrbitalSpacecraft.md | 4 +- .../docs/Update-AzOrbitalSpacecraftContact.md | 4 +- .../Orbital.Autorest/resources/README.md | 11 - src/Orbital/Orbital/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 7 +- .../Peering.Autorest/docs/Az.Peering.md | 28 +- .../Peering.Autorest/docs/New-AzPeering.md | 4 +- .../Peering.Autorest/docs/New-AzPeeringAsn.md | 4 +- .../New-AzPeeringConnectionMonitorTest.md | 4 +- .../docs/New-AzPeeringRegisteredAsn.md | 4 +- .../docs/New-AzPeeringRegisteredPrefix.md | 4 +- .../docs/New-AzPeeringService.md | 4 +- .../docs/New-AzPeeringServicePrefix.md | 4 +- .../Peering.Autorest/docs/Update-AzPeering.md | 4 +- .../docs/Update-AzPeeringAsn.md | 4 +- .../Update-AzPeeringConnectionMonitorTest.md | 4 +- .../docs/Update-AzPeeringRegisteredAsn.md | 4 +- .../docs/Update-AzPeeringRegisteredPrefix.md | 4 +- .../docs/Update-AzPeeringService.md | 4 +- .../Peering.Autorest/resources/README.md | 11 - src/Peering/Peering/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../custom/Az.Pinecone.custom.psm1 | 4 +- .../Pinecone.Autorest/custom/README.md | 8 +- .../Pinecone.Autorest/docs/Az.Pinecone.md | 2 +- src/Pinecone/Pinecone.Autorest/docs/README.md | 4 +- .../Pinecone.Autorest/resources/README.md | 11 - src/Pinecone/Pinecone.Autorest/test/README.md | 2 +- src/Pinecone/Pinecone/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- src/Portal/Portal.Autorest/docs/Az.Portal.md | 6 +- .../docs/New-AzPortalDashboard.md | 7 +- .../docs/Update-AzPortalDashboard.md | 4 +- .../Portal.Autorest/resources/README.md | 11 - src/Portal/Portal/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 8 +- .../docs/Az.ProviderHub.md | 2 +- .../ProviderHub.Autorest/resources/README.md | 11 - .../ProviderHub/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../Purview.Autorest/docs/Az.Purview.md | 2 +- .../Purview.Autorest/resources/README.md | 11 - src/Purview/Purview/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.Purviewdata.md | 2 +- .../Purviewdata.Autorest/resources/README.md | 11 - .../Properties/AssemblyInfo.cs | 6 +- .../Quantum.Autorest/docs/Az.Quantum.md | 6 +- .../docs/New-AzQuantumWorkspace.md | 4 +- .../docs/Update-AzQuantumWorkspace.md | 4 +- .../Quantum.Autorest/resources/README.md | 11 - src/Quantum/Quantum/AutorestUpgradeLog.md | 2 + .../Quota.Autorest/Properties/AssemblyInfo.cs | 26 + .../New-AzQuotaLimitObject.ps1 | 1 + src/Quota/Quota.Autorest/docs/Az.Quota.md | 6 +- src/Quota/Quota.Autorest/docs/New-AzQuota.md | 8 +- src/Quota/Quota/AutorestUpgradeLog.md | 2 + .../Relay.Autorest/Properties/AssemblyInfo.cs | 6 +- src/Relay/Relay.Autorest/docs/Az.Relay.md | 2 +- src/Relay/Relay.Autorest/resources/README.md | 11 - src/Relay/Relay/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 8 +- .../docs/Az.Reservations.md | 2 +- .../Reservations.Autorest/resources/README.md | 11 - .../Reservations/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.ResourceGraph.md | 2 +- .../resources/README.md | 11 - .../ResourceGraph/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../docs/Az.Authorization.md | 2 +- .../resources/README.md | 11 - .../Properties/AssemblyInfo.cs | 26 + .../docs/Az.DataBoundary.md | 2 +- .../MSGraph.Autorest/Az.Resources.nuspec | 32 -- .../Properties/AssemblyInfo.cs | 26 + .../MSGraph.Autorest/docs/Az.MSGraph.md | 8 +- .../docs/Update-AzADAppFederatedCredential.md | 4 +- .../MSGraph.Autorest/docs/Update-AzADGroup.md | 4 +- ...e-AzADServicePrincipalAppRoleAssignment.md | 4 +- .../Properties/AssemblyInfo.cs | 26 + .../Policy.Autorest/docs/Az.Policy.md | 2 +- src/Resources/Resources/AutorestUpgradeLog.md | 2 + .../ScVmm.Autorest/Properties/AssemblyInfo.cs | 6 +- .../custom/Az.ScVmm.custom.psm1 | 4 +- src/ScVmm/ScVmm.Autorest/custom/README.md | 8 +- src/ScVmm/ScVmm.Autorest/docs/Az.ScVmm.md | 2 +- src/ScVmm/ScVmm.Autorest/docs/README.md | 4 +- src/ScVmm/ScVmm.Autorest/resources/README.md | 11 - src/ScVmm/ScVmm.Autorest/test/README.md | 2 +- src/ScVmm/ScVmm/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 26 + .../docs/Az.DefenderForStorage.md | 2 +- .../Properties/AssemblyInfo.cs | 26 + .../New-AzSecurityAwsEnvironmentObject.ps1 | 1 + ...urityAwsOrganizationalDataMasterObject.ps1 | 1 + ...urityAwsOrganizationalDataMemberObject.ps1 | 1 + ...urityAzureDevOpsScopeEnvironmentObject.ps1 | 1 + ...tyConnectorActionableRemediationObject.ps1 | 1 + ...AzSecurityCspmMonitorAwsOfferingObject.ps1 | 1 + ...tyCspmMonitorAzureDevOpsOfferingObject.ps1 | 1 + ...AzSecurityCspmMonitorGcpOfferingObject.ps1 | 1 + ...ecurityCspmMonitorGitLabOfferingObject.ps1 | 1 + ...ecurityCspmMonitorGithubOfferingObject.ps1 | 1 + ...zSecurityDefenderCspmAwsOfferingObject.ps1 | 1 + ...zSecurityDefenderCspmGcpOfferingObject.ps1 | 1 + ...DefenderForContainersAwsOfferingObject.ps1 | 1 + ...DefenderForContainersGcpOfferingObject.ps1 | 1 + ...yDefenderForDatabasesAwsOfferingObject.ps1 | 1 + ...yDefenderForDatabasesGcpOfferingObject.ps1 | 1 + ...ityDefenderForServersAwsOfferingObject.ps1 | 1 + ...ityDefenderForServersGcpOfferingObject.ps1 | 1 + ...urityGcpOrganizationalDataMemberObject.ps1 | 1 + ...cpOrganizationalDataOrganizationObject.ps1 | 1 + ...-AzSecurityGcpProjectEnvironmentObject.ps1 | 1 + ...AzSecurityGitHubScopeEnvironmentObject.ps1 | 1 + ...AzSecurityGitLabScopeEnvironmentObject.ps1 | 1 + ...InformationProtectionAwsOfferingObject.ps1 | 1 + .../Security.Autorest/docs/Az.Security.md | 2 +- src/Security/Security/AutorestUpgradeLog.md | 2 + .../Properties/AssemblyInfo.cs | 6 +- .../SelfHelp.Autorest/docs/Az.SelfHelp.md | 12 +- .../docs/New-AzSelfHelpDiagnostic.md | 4 +- .../docs/New-AzSelfHelpSimplifiedSolution.md | 4 +- .../docs/New-AzSelfHelpSolution.md | 4 +- .../docs/New-AzSelfHelpTroubleshooter.md | 4 +- .../docs/Update-AzSelfHelpSolution.md | 4 +- .../SelfHelp.Autorest/resources/README.md | 11 - src/SelfHelp/SelfHelp/AutorestUpgradeLog.md | 2 + 1361 files changed, 4877 insertions(+), 8748 deletions(-) delete mode 100644 generated/Quota/Quota.Autorest/Properties/AssemblyInfo.cs rename {src/Network/NetworkSecurityPerimeter.Autorest => generated/Quota/Quota.Autorest}/resources/README.md (100%) rename {src/NetworkCloud/NetworkCloud.Autorest => generated/Security/DefenderForStorage.Autorest}/resources/README.md (100%) delete mode 100644 generated/Security/Security.Autorest/Properties/AssemblyInfo.cs rename {src/NetworkFunction/NetworkFunction.Autorest => generated/Security/Security.Autorest}/resources/README.md (100%) create mode 100644 src/Network/Network/AutorestUpgradeLog.md create mode 100644 src/NetworkCloud/NetworkCloud/AutorestUpgradeLog.md create mode 100644 src/NetworkFunction/NetworkFunction/AutorestUpgradeLog.md delete mode 100644 src/NewRelic/NewRelic.Autorest/resources/README.md create mode 100644 src/NewRelic/NewRelic/AutorestUpgradeLog.md delete mode 100644 src/Nginx/Nginx.Autorest/resources/README.md create mode 100644 src/Nginx/Nginx/AutorestUpgradeLog.md delete mode 100644 src/Oracle/Oracle.Autorest/resources/README.md create mode 100644 src/Oracle/Oracle/AutorestUpgradeLog.md delete mode 100644 src/Orbital/Orbital.Autorest/resources/README.md create mode 100644 src/Orbital/Orbital/AutorestUpgradeLog.md delete mode 100644 src/Peering/Peering.Autorest/resources/README.md create mode 100644 src/Peering/Peering/AutorestUpgradeLog.md delete mode 100644 src/Pinecone/Pinecone.Autorest/resources/README.md create mode 100644 src/Pinecone/Pinecone/AutorestUpgradeLog.md delete mode 100644 src/Portal/Portal.Autorest/resources/README.md create mode 100644 src/Portal/Portal/AutorestUpgradeLog.md delete mode 100644 src/ProviderHub/ProviderHub.Autorest/resources/README.md create mode 100644 src/ProviderHub/ProviderHub/AutorestUpgradeLog.md delete mode 100644 src/Purview/Purview.Autorest/resources/README.md create mode 100644 src/Purview/Purview/AutorestUpgradeLog.md delete mode 100644 src/Purview/Purviewdata.Autorest/resources/README.md delete mode 100644 src/Quantum/Quantum.Autorest/resources/README.md create mode 100644 src/Quantum/Quantum/AutorestUpgradeLog.md create mode 100644 src/Quota/Quota.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/Quota/Quota/AutorestUpgradeLog.md delete mode 100644 src/Relay/Relay.Autorest/resources/README.md create mode 100644 src/Relay/Relay/AutorestUpgradeLog.md delete mode 100644 src/Reservations/Reservations.Autorest/resources/README.md create mode 100644 src/Reservations/Reservations/AutorestUpgradeLog.md delete mode 100644 src/ResourceGraph/ResourceGraph.Autorest/resources/README.md create mode 100644 src/ResourceGraph/ResourceGraph/AutorestUpgradeLog.md delete mode 100644 src/Resources/Authorization.Autorest/resources/README.md create mode 100644 src/Resources/DataBoundary.Autorest/Properties/AssemblyInfo.cs delete mode 100644 src/Resources/MSGraph.Autorest/Az.Resources.nuspec create mode 100644 src/Resources/MSGraph.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/Resources/Policy.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/Resources/Resources/AutorestUpgradeLog.md delete mode 100644 src/ScVmm/ScVmm.Autorest/resources/README.md create mode 100644 src/ScVmm/ScVmm/AutorestUpgradeLog.md create mode 100644 src/Security/DefenderForStorage.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/Security/Security.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/Security/Security/AutorestUpgradeLog.md delete mode 100644 src/SelfHelp/SelfHelp.Autorest/resources/README.md create mode 100644 src/SelfHelp/SelfHelp/AutorestUpgradeLog.md diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeter.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeter.ps1 index b1afabbbccf2..16ba42c597f5 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeter.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeter.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAccessRule.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAccessRule.ps1 index 3611b02549b2..58d97d52294c 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAccessRule.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAccessRule.ps1 @@ -219,8 +219,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAssociableResourceType.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAssociableResourceType.ps1 index c201b0719d7d..23d86bf73157 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAssociableResourceType.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAssociableResourceType.ps1 @@ -109,8 +109,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAssociation.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAssociation.ps1 index 686fbddfd82d..5f7c5dc0a54d 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAssociation.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterAssociation.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLink.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLink.ps1 index 667768cfc836..b2dacd515dc4 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLink.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLink.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLinkReference.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLinkReference.ps1 index 99b08dab1f86..d2f079a4c292 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLinkReference.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLinkReference.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 index fbdc01938f4c..7aa0a0d5189c 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterProfile.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterProfile.ps1 index 0bcedd2c8cec..b0209f7c9c63 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterProfile.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterProfile.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterServiceTag.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterServiceTag.ps1 index ec8057e8f2ab..e83d64861d9d 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterServiceTag.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Get-AzNetworkSecurityPerimeterServiceTag.ps1 @@ -109,8 +109,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeter.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeter.ps1 index 5c92db388931..130becf791ae 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeter.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeter.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterAccessRule.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterAccessRule.ps1 index dd6ffca82e92..5ac46a1dd7a8 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterAccessRule.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterAccessRule.ps1 @@ -327,8 +327,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterAssociation.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterAssociation.ps1 index 2855d9ae3978..33cc93c5aa8f 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterAssociation.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterAssociation.ps1 @@ -247,8 +247,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterLink.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterLink.ps1 index 12944317ddcb..a6276b3365ff 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterLink.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterLink.ps1 @@ -250,8 +250,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 index 18faa9734623..86a0ac78ce9c 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 @@ -226,8 +226,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterProfile.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterProfile.ps1 index c96990193bdc..489b388eb7a5 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterProfile.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/New-AzNetworkSecurityPerimeterProfile.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/ProxyCmdletDefinitions.ps1 index 8e2fb4ed0246..6ce879a8e869 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -219,8 +219,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -402,8 +401,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -661,8 +659,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -920,8 +917,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1179,8 +1175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1425,8 +1420,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1690,8 +1684,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1872,8 +1865,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2107,8 +2099,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2507,8 +2498,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2832,8 +2822,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3158,8 +3147,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3460,8 +3448,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3742,8 +3729,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4007,8 +3993,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4287,8 +4272,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4549,8 +4533,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4810,8 +4793,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5071,8 +5053,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5322,8 +5303,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5574,8 +5554,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5813,8 +5792,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6070,8 +6048,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6358,8 +6335,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6609,8 +6585,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6860,8 +6835,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7096,8 +7070,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeter.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeter.ps1 index e8c02022418f..1151e9e1a880 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeter.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeter.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterAccessRule.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterAccessRule.ps1 index db0d6a9d1dba..970d5fb60ca4 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterAccessRule.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterAccessRule.ps1 @@ -206,8 +206,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterAssociation.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterAssociation.ps1 index 69bf14d9858e..9563d4f519a1 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterAssociation.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterAssociation.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLink.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLink.ps1 index ad82bd6c91f1..3bd8a1d3bdbd 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLink.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLink.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLinkReference.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLinkReference.ps1 index adf23d307d29..72583ce1a73e 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLinkReference.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLinkReference.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 index 1980bb3031d5..d4e64816a693 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 @@ -179,8 +179,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterProfile.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterProfile.ps1 index fe56852b6088..fe48b93a1bf6 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterProfile.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Remove-AzNetworkSecurityPerimeterProfile.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeter.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeter.ps1 index a4cc5e22ee6a..6fdd9714a24d 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeter.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeter.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterAccessRule.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterAccessRule.ps1 index 30d7dda60eb4..c9a6d7e97770 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterAccessRule.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterAccessRule.ps1 @@ -213,8 +213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterAssociation.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterAssociation.ps1 index 93bbb647f3fd..788533b71d3d 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterAssociation.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterAssociation.ps1 @@ -180,8 +180,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterLink.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterLink.ps1 index d0551df8e437..46814d704361 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterLink.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterLink.ps1 @@ -180,8 +180,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 index 0e94310da1a1..944c38b2b928 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/exports/Update-AzNetworkSecurityPerimeterLoggingConfiguration.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Network/NetworkSecurityPerimeter.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Network/NetworkSecurityPerimeter.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 3615ec1ff8f0..f717d1cfe71a 100644 --- a/generated/Network/NetworkSecurityPerimeter.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Network/NetworkSecurityPerimeter.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Deploy-AzNetworkCloudCluster.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Deploy-AzNetworkCloudCluster.ps1 index 38dff4589e7e..fa56cd5aa42d 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Deploy-AzNetworkCloudCluster.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Deploy-AzNetworkCloudCluster.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Disable-AzNetworkCloudStorageApplianceRemoteVendorManagement.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Disable-AzNetworkCloudStorageApplianceRemoteVendorManagement.ps1 index 39eccfa179e6..8046261cb2ca 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Disable-AzNetworkCloudStorageApplianceRemoteVendorManagement.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Disable-AzNetworkCloudStorageApplianceRemoteVendorManagement.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Enable-AzNetworkCloudStorageApplianceRemoteVendorManagement.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Enable-AzNetworkCloudStorageApplianceRemoteVendorManagement.ps1 index c9aa82bb32f1..18d117d331c4 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Enable-AzNetworkCloudStorageApplianceRemoteVendorManagement.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Enable-AzNetworkCloudStorageApplianceRemoteVendorManagement.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudAgentPool.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudAgentPool.ps1 index 8b6091cc9e49..df8a4b27506a 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudAgentPool.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudAgentPool.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBareMetalMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBareMetalMachine.ps1 index eb177cd4d47f..74b765bb0f93 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBareMetalMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBareMetalMachine.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBareMetalMachineKeySet.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBareMetalMachineKeySet.ps1 index 0161d53f540b..172569a7d3a4 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBareMetalMachineKeySet.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBareMetalMachineKeySet.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBmcKeySet.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBmcKeySet.ps1 index 2732d41b0cb3..43470f58974d 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBmcKeySet.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudBmcKeySet.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudCluster.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudCluster.ps1 index 11dddd747605..0bc47a3a3580 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudCluster.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudCluster.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudClusterManager.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudClusterManager.ps1 index 586a5a865ace..0bc5977506ba 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudClusterManager.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudClusterManager.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudConsole.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudConsole.ps1 index 0be063aea4fe..d53eadb8a3df 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudConsole.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudConsole.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudKubernetesCluster.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudKubernetesCluster.ps1 index 100c20ba4e89..dd3668a6ab54 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudKubernetesCluster.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudKubernetesCluster.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudKubernetesClusterFeature.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudKubernetesClusterFeature.ps1 index e4bf41992ecd..308d100e11f8 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudKubernetesClusterFeature.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudKubernetesClusterFeature.ps1 @@ -192,8 +192,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudL2Network.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudL2Network.ps1 index 65b82e9f3ff6..65a0badadebc 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudL2Network.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudL2Network.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudL3Network.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudL3Network.ps1 index 58c6753373d5..20975582dc19 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudL3Network.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudL3Network.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudMetricsConfiguration.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudMetricsConfiguration.ps1 index 92d92ec0da5c..5287fd283f2e 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudMetricsConfiguration.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudMetricsConfiguration.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudRack.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudRack.ps1 index 224c352db18c..03d37780df33 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudRack.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudRack.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudRackSku.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudRackSku.ps1 index 4f995f516d97..75103c1b5e15 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudRackSku.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudRackSku.ps1 @@ -147,8 +147,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudServicesNetwork.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudServicesNetwork.ps1 index 0a3f11778a08..2d30a7b6652c 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudServicesNetwork.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudServicesNetwork.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudStorageAppliance.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudStorageAppliance.ps1 index 8bd780bbd956..9bc0fb8b28b5 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudStorageAppliance.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudStorageAppliance.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudTrunkedNetwork.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudTrunkedNetwork.ps1 index ead1f7a4abbf..da37781ad679 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudTrunkedNetwork.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudTrunkedNetwork.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudVirtualMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudVirtualMachine.ps1 index 49d6cb96fc1a..f69e32d6bc82 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudVirtualMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudVirtualMachine.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudVolume.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudVolume.ps1 index 490e9c1176de..51312389b7fe 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudVolume.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Get-AzNetworkCloudVolume.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineCordon.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineCordon.ps1 index 0ef55e16e238..accae9fed1c0 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineCordon.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineCordon.ps1 @@ -194,8 +194,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineDataExtract.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineDataExtract.ps1 index 324419f5b159..a85f5caa942a 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineDataExtract.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineDataExtract.ps1 @@ -212,8 +212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineReimage.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineReimage.ps1 index 2f6a50a0ace3..d3cccc1bb520 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineReimage.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineReimage.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineReplace.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineReplace.ps1 index 4196a8f82028..76749379d446 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineReplace.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineReplace.ps1 @@ -231,8 +231,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineRunCommand.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineRunCommand.ps1 index 12d9f9a693d3..06e02c03d70e 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineRunCommand.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineRunCommand.ps1 @@ -210,8 +210,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineRunReadCommand.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineRunReadCommand.ps1 index 5ef700a10c76..868668afb083 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineRunReadCommand.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineRunReadCommand.ps1 @@ -212,8 +212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineUncordon.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineUncordon.ps1 index 24e201d5e2ae..f481b514c4ea 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineUncordon.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudBareMetalMachineUncordon.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudClusterContinueVersionUpdate.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudClusterContinueVersionUpdate.ps1 index 5f3797918810..b0b6e3ad2d35 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudClusterContinueVersionUpdate.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudClusterContinueVersionUpdate.ps1 @@ -210,8 +210,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudClusterVersionUpdate.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudClusterVersionUpdate.ps1 index ff2ceb362973..908dc158501c 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudClusterVersionUpdate.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudClusterVersionUpdate.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudScanClusterRuntime.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudScanClusterRuntime.ps1 index 90a2008f85e5..c9076cd4a007 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudScanClusterRuntime.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudScanClusterRuntime.ps1 @@ -210,8 +210,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudVirtualMachineReimage.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudVirtualMachineReimage.ps1 index 0ebe1376d06b..ec82843c3763 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudVirtualMachineReimage.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Invoke-AzNetworkCloudVirtualMachineReimage.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudAgentPool.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudAgentPool.ps1 index d83dec2ea481..00a633153d1a 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudAgentPool.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudAgentPool.ps1 @@ -411,8 +411,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudBareMetalMachineKeySet.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudBareMetalMachineKeySet.ps1 index d3ef8097758d..5940ad0e4d7b 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudBareMetalMachineKeySet.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudBareMetalMachineKeySet.ps1 @@ -294,8 +294,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudBmcKeySet.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudBmcKeySet.ps1 index 794e940a22b3..d1b16141a54a 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudBmcKeySet.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudBmcKeySet.ps1 @@ -278,8 +278,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudCluster.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudCluster.ps1 index f4481d0694fa..39102ec488b1 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudCluster.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudCluster.ps1 @@ -518,8 +518,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudClusterManager.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudClusterManager.ps1 index 849f59ded6fc..84b26cbc33ff 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudClusterManager.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudClusterManager.ps1 @@ -227,8 +227,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudConsole.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudConsole.ps1 index 785f1798a516..2e040d2b6f6b 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudConsole.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudConsole.ps1 @@ -253,8 +253,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudKubernetesCluster.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudKubernetesCluster.ps1 index fac98d993b97..7e1a9b37f996 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudKubernetesCluster.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudKubernetesCluster.ps1 @@ -464,8 +464,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudKubernetesClusterFeature.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudKubernetesClusterFeature.ps1 index 9cc321d9a01b..c49cb41562bc 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudKubernetesClusterFeature.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudKubernetesClusterFeature.ps1 @@ -228,8 +228,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudL2Network.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudL2Network.ps1 index ec685b065026..222cc7683268 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudL2Network.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudL2Network.ps1 @@ -201,8 +201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudL3Network.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudL3Network.ps1 index 19ed50fda099..ef0757b3f7c0 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudL3Network.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudL3Network.ps1 @@ -237,8 +237,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudMetricsConfiguration.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudMetricsConfiguration.ps1 index b658881f476a..e4d49d22aace 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudMetricsConfiguration.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudMetricsConfiguration.ps1 @@ -246,8 +246,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudServicesNetwork.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudServicesNetwork.ps1 index fa057920c3ec..72c35db83bfa 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudServicesNetwork.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudServicesNetwork.ps1 @@ -209,8 +209,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudTrunkedNetwork.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudTrunkedNetwork.ps1 index 9ff9eee05c89..4d31722fb237 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudTrunkedNetwork.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudTrunkedNetwork.ps1 @@ -210,8 +210,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudVirtualMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudVirtualMachine.ps1 index 760e8dc927f7..9f2b6532dd07 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudVirtualMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudVirtualMachine.ps1 @@ -402,8 +402,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudVolume.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudVolume.ps1 index a092abcf500f..ce62f450c5e1 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudVolume.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/New-AzNetworkCloudVolume.ps1 @@ -185,8 +185,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/ProxyCmdletDefinitions.ps1 index 3cfd1bde7088..5a1226a45daa 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -436,8 +435,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -703,8 +701,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -969,8 +966,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1235,8 +1231,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1466,8 +1461,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1732,8 +1726,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1963,8 +1956,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2194,8 +2186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2460,8 +2451,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2725,8 +2715,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2956,8 +2945,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3187,8 +3175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3418,8 +3405,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3684,8 +3670,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3904,8 +3889,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4134,8 +4118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4365,8 +4348,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4596,8 +4578,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4827,8 +4808,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5058,8 +5038,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5289,8 +5268,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5556,8 +5534,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5841,8 +5818,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6083,8 +6059,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6385,8 +6360,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6668,8 +6642,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6953,8 +6926,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7194,8 +7166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7475,8 +7446,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7743,8 +7713,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8026,8 +7995,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8270,8 +8238,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8752,8 +8719,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9119,8 +9085,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9470,8 +9435,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9770,8 +9734,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10360,8 +10323,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10685,8 +10647,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10986,8 +10947,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11523,8 +11483,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11796,8 +11755,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12105,8 +12063,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12423,8 +12380,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12705,8 +12661,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12987,8 +12942,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13461,8 +13415,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13718,8 +13671,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14011,8 +13963,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14304,8 +14255,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14597,8 +14547,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14853,8 +14802,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15108,8 +15056,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15400,8 +15347,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15692,8 +15638,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15948,8 +15893,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16203,8 +16147,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16458,8 +16401,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16750,8 +16692,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17006,8 +16947,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17261,8 +17201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17516,8 +17455,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17771,8 +17709,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18011,8 +17948,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18291,8 +18227,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18535,8 +18470,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18775,8 +18709,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -19015,8 +18948,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -19281,8 +19213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -19549,8 +19480,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -19927,8 +19857,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -20294,8 +20223,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -20581,8 +20509,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -20938,8 +20865,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -21216,8 +21142,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -21769,8 +21694,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -22116,8 +22040,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -22450,8 +22373,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -22771,8 +22693,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -23036,8 +22957,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -23301,8 +23221,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -23637,8 +23556,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -23933,8 +23851,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -24243,8 +24160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -24527,8 +24443,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -24792,8 +24707,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -25098,8 +25012,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -25363,8 +25276,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudAgentPool.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudAgentPool.ps1 index 67367f530dad..91d0cfb76512 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudAgentPool.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudAgentPool.ps1 @@ -221,8 +221,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudBareMetalMachineKeySet.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudBareMetalMachineKeySet.ps1 index 41725306112a..6d18480f8468 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudBareMetalMachineKeySet.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudBareMetalMachineKeySet.ps1 @@ -221,8 +221,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudBmcKeySet.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudBmcKeySet.ps1 index 1cf7bbc3e8da..b400ae6bd990 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudBmcKeySet.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudBmcKeySet.ps1 @@ -221,8 +221,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudCluster.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudCluster.ps1 index 4886aa24d707..2bb6caa5f3bc 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudCluster.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudCluster.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudClusterManager.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudClusterManager.ps1 index f118e67a2404..5d4418c007f2 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudClusterManager.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudClusterManager.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudConsole.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudConsole.ps1 index cb5be35f93cd..bf1a18f8f00c 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudConsole.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudConsole.ps1 @@ -221,8 +221,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudKubernetesCluster.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudKubernetesCluster.ps1 index 74b5f0fde0b5..a8624b69e2ca 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudKubernetesCluster.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudKubernetesCluster.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudKubernetesClusterFeature.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudKubernetesClusterFeature.ps1 index 5f486f68972f..97da8f59a2f4 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudKubernetesClusterFeature.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudKubernetesClusterFeature.ps1 @@ -220,8 +220,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudL2Network.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudL2Network.ps1 index 52d44526f551..746484d356f7 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudL2Network.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudL2Network.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudL3Network.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudL3Network.ps1 index 1656622d028f..c450648e7636 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudL3Network.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudL3Network.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudMetricsConfiguration.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudMetricsConfiguration.ps1 index b5b9ec3a50b7..1feea3b58226 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudMetricsConfiguration.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudMetricsConfiguration.ps1 @@ -221,8 +221,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudServicesNetwork.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudServicesNetwork.ps1 index 943f25d6847c..e42071d2b857 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudServicesNetwork.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudServicesNetwork.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudTrunkedNetwork.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudTrunkedNetwork.ps1 index 629071dfaff0..eab0987b94ef 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudTrunkedNetwork.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudTrunkedNetwork.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudVirtualMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudVirtualMachine.ps1 index 0ea5b8c54056..6a98b9e580c8 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudVirtualMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudVirtualMachine.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudVolume.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudVolume.ps1 index e77f78987535..a330f3e4d64e 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudVolume.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Remove-AzNetworkCloudVolume.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudBareMetalMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudBareMetalMachine.ps1 index 6ffafdae2bb0..8b52cc48d1c3 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudBareMetalMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudBareMetalMachine.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudKubernetesClusterNode.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudKubernetesClusterNode.ps1 index 8d090861068f..69125304afbb 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudKubernetesClusterNode.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudKubernetesClusterNode.ps1 @@ -209,8 +209,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudVirtualMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudVirtualMachine.ps1 index 7363cef445a0..6ceb78ddc1c4 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudVirtualMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Restart-AzNetworkCloudVirtualMachine.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Start-AzNetworkCloudBareMetalMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Start-AzNetworkCloudBareMetalMachine.ps1 index ca3a5093138b..43cf7e93e567 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Start-AzNetworkCloudBareMetalMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Start-AzNetworkCloudBareMetalMachine.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Start-AzNetworkCloudVirtualMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Start-AzNetworkCloudVirtualMachine.ps1 index 048a2d946df2..cdfe7c3dd41d 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Start-AzNetworkCloudVirtualMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Start-AzNetworkCloudVirtualMachine.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Stop-AzNetworkCloudBareMetalMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Stop-AzNetworkCloudBareMetalMachine.ps1 index ca9b76f139f3..a517655cbe98 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Stop-AzNetworkCloudBareMetalMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Stop-AzNetworkCloudBareMetalMachine.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Stop-AzNetworkCloudVirtualMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Stop-AzNetworkCloudVirtualMachine.ps1 index f2d68e134aa3..28cfb057956f 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Stop-AzNetworkCloudVirtualMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Stop-AzNetworkCloudVirtualMachine.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudAgentPool.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudAgentPool.ps1 index c3952618ef29..5997645873f5 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudAgentPool.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudAgentPool.ps1 @@ -305,8 +305,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBareMetalMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBareMetalMachine.ps1 index e38f6696db13..1895cc4ce2d6 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBareMetalMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBareMetalMachine.ps1 @@ -213,8 +213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBareMetalMachineKeySet.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBareMetalMachineKeySet.ps1 index a70236b23ab8..c2748c5aefc1 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBareMetalMachineKeySet.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBareMetalMachineKeySet.ps1 @@ -293,8 +293,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBmcKeySet.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBmcKeySet.ps1 index 1d790e86888f..b1984fa41da1 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBmcKeySet.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudBmcKeySet.ps1 @@ -284,8 +284,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudCluster.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudCluster.ps1 index 93369ec58a2d..b2317ef5ab64 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudCluster.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudCluster.ps1 @@ -482,8 +482,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudClusterManager.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudClusterManager.ps1 index cec735208bc8..5af5106cb8d7 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudClusterManager.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudClusterManager.ps1 @@ -204,8 +204,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudConsole.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudConsole.ps1 index e05a9510a334..aa3554306d2e 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudConsole.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudConsole.ps1 @@ -276,8 +276,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudKubernetesCluster.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudKubernetesCluster.ps1 index 357b2c5993d6..b7055f8afc11 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudKubernetesCluster.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudKubernetesCluster.ps1 @@ -247,8 +247,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudKubernetesClusterFeature.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudKubernetesClusterFeature.ps1 index afe0e22ef5ef..1cf8b649c404 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudKubernetesClusterFeature.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudKubernetesClusterFeature.ps1 @@ -260,8 +260,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudL2Network.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudL2Network.ps1 index fb14e28e7dc2..366af1c1eb0b 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudL2Network.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudL2Network.ps1 @@ -192,8 +192,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudL3Network.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudL3Network.ps1 index c3ddc8399179..bbb12a9aa00a 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudL3Network.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudL3Network.ps1 @@ -192,8 +192,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudMetricsConfiguration.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudMetricsConfiguration.ps1 index b3dfbe326deb..8eb9057ef593 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudMetricsConfiguration.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudMetricsConfiguration.ps1 @@ -263,8 +263,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudRack.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudRack.ps1 index bfcc87cab0e0..009214b84841 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudRack.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudRack.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudServicesNetwork.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudServicesNetwork.ps1 index 24d103c64ece..8f8ba5928ed6 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudServicesNetwork.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudServicesNetwork.ps1 @@ -237,8 +237,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudStorageAppliance.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudStorageAppliance.ps1 index c1e49ecb3084..16ccd234ace2 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudStorageAppliance.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudStorageAppliance.ps1 @@ -211,8 +211,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudTrunkedNetwork.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudTrunkedNetwork.ps1 index ef940ce6f36a..c677c0677bbe 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudTrunkedNetwork.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudTrunkedNetwork.ps1 @@ -192,8 +192,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudVirtualMachine.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudVirtualMachine.ps1 index 10a24d88cfd9..24355bbf3fb6 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudVirtualMachine.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudVirtualMachine.ps1 @@ -233,8 +233,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudVolume.ps1 b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudVolume.ps1 index d72e26815ff6..ede2d644f60c 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudVolume.ps1 +++ b/generated/NetworkCloud/NetworkCloud.Autorest/exports/Update-AzNetworkCloudVolume.ps1 @@ -192,8 +192,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkCloud/NetworkCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/NetworkCloud/NetworkCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 587c84b5ea47..15b136d34f58 100644 --- a/generated/NetworkCloud/NetworkCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/NetworkCloud/NetworkCloud.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Get-AzNetworkFunctionCollectorPolicy.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Get-AzNetworkFunctionCollectorPolicy.ps1 index 78b705e22db0..e70500b272da 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Get-AzNetworkFunctionCollectorPolicy.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Get-AzNetworkFunctionCollectorPolicy.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Get-AzNetworkFunctionTrafficCollector.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Get-AzNetworkFunctionTrafficCollector.ps1 index 75e4a141358a..8af6c8ba6c51 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Get-AzNetworkFunctionTrafficCollector.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Get-AzNetworkFunctionTrafficCollector.ps1 @@ -139,8 +139,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/New-AzNetworkFunctionCollectorPolicy.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/New-AzNetworkFunctionCollectorPolicy.ps1 index 4d30324e25ca..e549509876aa 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/New-AzNetworkFunctionCollectorPolicy.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/New-AzNetworkFunctionCollectorPolicy.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/New-AzNetworkFunctionTrafficCollector.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/New-AzNetworkFunctionTrafficCollector.ps1 index 01cac590896c..43b15e6537aa 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/New-AzNetworkFunctionTrafficCollector.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/New-AzNetworkFunctionTrafficCollector.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource .Description -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource .Example New-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/ProxyCmdletDefinitions.ps1 index 597cf13d3ea6..1cf50140c337 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -367,8 +366,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -456,9 +454,9 @@ end { <# .Synopsis -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource .Description -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource .Example New-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List @@ -617,8 +615,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -860,8 +857,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1082,8 +1078,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1169,9 +1164,9 @@ end { <# .Synopsis -update the specified Collector Policy tags. +Update the specified Collector Policy tags. .Description -update the specified Collector Policy tags. +Update the specified Collector Policy tags. .Example Update-AzNetworkFunctionCollectorPolicyTag -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 | Format-List @@ -1333,8 +1328,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1423,9 +1417,9 @@ end { <# .Synopsis -update the specified Azure Traffic Collector tags. +Update the specified Azure Traffic Collector tags. .Description -update the specified Azure Traffic Collector tags. +Update the specified Azure Traffic Collector tags. .Example Update-AzNetworkFunctionTrafficCollectorTag -azuretrafficcollectorname atc -resourcegroupname rg1 | Format-List @@ -1564,8 +1558,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1830,8 +1823,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2080,8 +2072,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2312,8 +2303,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Remove-AzNetworkFunctionCollectorPolicy.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Remove-AzNetworkFunctionCollectorPolicy.ps1 index 5f1cc6e1949c..031446cddbc7 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Remove-AzNetworkFunctionCollectorPolicy.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Remove-AzNetworkFunctionCollectorPolicy.ps1 @@ -170,8 +170,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Remove-AzNetworkFunctionTrafficCollector.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Remove-AzNetworkFunctionTrafficCollector.ps1 index 4e19fc805f43..f0af5e26ffa3 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Remove-AzNetworkFunctionTrafficCollector.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Remove-AzNetworkFunctionTrafficCollector.ps1 @@ -150,8 +150,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionCollectorPolicy.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionCollectorPolicy.ps1 index 02fd87cb7e26..04193f352e7a 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionCollectorPolicy.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionCollectorPolicy.ps1 @@ -179,8 +179,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionCollectorPolicyTag.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionCollectorPolicyTag.ps1 index 4eeeda460734..e9640e2fba59 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionCollectorPolicyTag.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionCollectorPolicyTag.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the specified Collector Policy tags. +Update the specified Collector Policy tags. .Description -update the specified Collector Policy tags. +Update the specified Collector Policy tags. .Example Update-AzNetworkFunctionCollectorPolicyTag -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 | Format-List @@ -180,8 +180,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionTrafficCollector.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionTrafficCollector.ps1 index 179ee38036ce..0c8b27664f29 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionTrafficCollector.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionTrafficCollector.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionTrafficCollectorTag.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionTrafficCollectorTag.ps1 index cab54adadd15..942bf5c279ac 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionTrafficCollectorTag.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/exports/Update-AzNetworkFunctionTrafficCollectorTag.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the specified Azure Traffic Collector tags. +Update the specified Azure Traffic Collector tags. .Description -update the specified Azure Traffic Collector tags. +Update the specified Azure Traffic Collector tags. .Example Update-AzNetworkFunctionTrafficCollectorTag -azuretrafficcollectorname atc -resourcegroupname rg1 | Format-List @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_Create.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_Create.cs index b3aeef4b5e4c..84463b2ae6c3 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_Create.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_Create.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFunctionCollectorPolicy_Create : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -597,24 +583,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateExpanded.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateExpanded.cs index 007fbafad539..e732f2b5c4ac 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateExpanded.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateExpanded : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Collector policy resource. private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.CollectorPolicy(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -325,11 +316,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -645,24 +631,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity.cs index 690e9c106b84..f5281ceec54d 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentity : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -563,24 +549,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureTrafficCollector.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureTrafficCollector.cs index cb17b78fdf9b..0fce1007db16 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureTrafficCollector.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureTrafficCollector.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureT /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -579,24 +565,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureTrafficCollectorExpanded.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureTrafficCollectorExpanded.cs index 931a883fa2b9..14b7c0d4d4a1 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureTrafficCollectorExpanded.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureTrafficCollectorExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityAzureT /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Collector policy resource. private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.CollectorPolicy(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -627,24 +613,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded.cs index f105d3f2697a..4c6c861bf330 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaIdentityExpand /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Collector policy resource. private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.CollectorPolicy(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -614,24 +600,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaJsonFilePath.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaJsonFilePath.cs index 11b3f5ba28ba..8656387ef810 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaJsonFilePath.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaJsonFilePath : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -601,24 +587,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaJsonString.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaJsonString.cs index 44ef8560720d..f7d04e5d97da 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaJsonString.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionCollectorPolicy_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzNetworkFunctionCollectorPolicy_CreateViaJsonString : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -597,24 +583,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_Create.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_Create.cs index 432b0ca7cbe9..85109f0479ec 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_Create.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_Create.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFunctionTrafficCollector_Create : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IAzureTrafficCollector var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateExpanded.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateExpanded.cs index e7ecdaaea26d..5387d68e096f 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateExpanded.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzNetworkFunctionTrafficCollector_CreateExpanded : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Azure Traffic Collector resource. private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IAzureTrafficCollector _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.AzureTrafficCollector(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -273,11 +264,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,24 +579,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IAzureTrafficCollector var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentity.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentity.cs index 2c5b9e953734..22b1e049ebee 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentity.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentity.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFunctionTrafficCollector_CreateViaIdentity : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,24 +545,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IAzureTrafficCollector var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded.cs index c832e899c6dd..cdb22ec6704b 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzNetworkFunctionTrafficCollector_CreateViaIdentityExpan /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Azure Traffic Collector resource. private Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IAzureTrafficCollector _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.AzureTrafficCollector(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -232,11 +223,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -573,24 +559,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IAzureTrafficCollector var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaJsonFilePath.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaJsonFilePath.cs index c13f07020866..cb7a34d5b21e 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaJsonFilePath.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzNetworkFunctionTrafficCollector_CreateViaJsonFilePath /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IAzureTrafficCollector var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaJsonString.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaJsonString.cs index c34d0d3dff12..55504c9e0c25 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaJsonString.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/NewAzNetworkFunctionTrafficCollector_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzNetworkFunctionTrafficCollector_CreateViaJsonString : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.NewAzNetworkFu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IAzureTrafficCollector var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_Delete.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_Delete.cs index bbe459c0e557..d9a467d73826 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_Delete.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFunctionCollectorPolicy_Delete : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.RemoveAzNetwor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity.cs index 1761ddf439a7..30f39b0a71b1 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentity : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.RemoveAzNetwor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -560,7 +546,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -584,7 +570,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentityAzureTrafficCollector.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentityAzureTrafficCollector.cs index a82237cece81..cdc049a08728 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentityAzureTrafficCollector.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentityAzureTrafficCollector.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFunctionCollectorPolicy_DeleteViaIdentityAzu /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.RemoveAzNetwor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -574,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -598,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_Delete.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_Delete.cs index 63fe0fc030b2..8d0572ba2370 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_Delete.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFunctionTrafficCollector_Delete : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.RemoveAzNetwor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity.cs index 0424501b4c3b..a8f12b2898f6 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/cmdlets/RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzNetworkFunctionTrafficCollector_DeleteViaIdentity : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.NetworkFunction.Category(global::Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Cmdlets.RemoveAzNetwor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -556,7 +542,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 10b9fa48b019..51a146818588 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index b6df7bdff5f7..321845aaad44 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 3ce1ea4ff52d..b2639429268e 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/Context.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/Context.cs index 23b5476cff84..bd009712aca9 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/Context.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/MessageAttribute.cs b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/MessageAttribute.cs index da83173a1f44..da8ed575f8dd 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.NetworkFunction" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/Properties/Resources.resx b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/NetworkFunction/NetworkFunction.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/internal/New-AzNetworkFunctionCollectorPolicy.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/internal/New-AzNetworkFunctionCollectorPolicy.ps1 index 0b2890898027..753ded35ce4e 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/internal/New-AzNetworkFunctionCollectorPolicy.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/internal/New-AzNetworkFunctionCollectorPolicy.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a Collector Policy resource +Create a Collector Policy resource .Description -create a Collector Policy resource +Create a Collector Policy resource .Example New-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/internal/New-AzNetworkFunctionTrafficCollector.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/internal/New-AzNetworkFunctionTrafficCollector.ps1 index 2a8df8d12a86..13060cba6423 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/internal/New-AzNetworkFunctionTrafficCollector.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/internal/New-AzNetworkFunctionTrafficCollector.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource .Description -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource .Example New-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List diff --git a/generated/NetworkFunction/NetworkFunction.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/NetworkFunction/NetworkFunction.Autorest/internal/ProxyCmdletDefinitions.ps1 index 3c344ae4fefd..1b6b613b2470 100644 --- a/generated/NetworkFunction/NetworkFunction.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/NetworkFunction/NetworkFunction.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a Collector Policy resource +Create a Collector Policy resource .Description -create a Collector Policy resource +Create a Collector Policy resource .Example New-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List @@ -318,9 +318,9 @@ end { <# .Synopsis -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource .Description -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource .Example New-AzNetworkFunctionTrafficCollector -name atctestps -resourcegroupname test -location eastus | Format-List diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1 index 54aa1a459f14..659560366253 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1 index ae69520a0a31..59600e760c68 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1 @@ -133,8 +133,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1 index 8a7fa96df57e..f0f9fc8b0ec2 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1 index 7cbbb9b2a8d8..5aa559ee1361 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1 @@ -151,8 +151,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1 index c7e0e413a621..02dc78efc01f 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1 index 567e26fb188d..c31e242a4bb0 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1 @@ -166,8 +166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1 index eb7568c97bf4..ea1656fd3409 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1 index 234c086d66a5..52b524e6d31d 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1 index 49afbe233695..e5a071737f02 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1 index 12e4ad5e8ac7..9142891c54ed 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1 index 033a90ced3e9..52055e33dd7d 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1 @@ -133,8 +133,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1 index 25ffed179db5..f7ce9e2838f2 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1 index f49234eb023a..bc64c2ef6df1 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1 @@ -114,8 +114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1 index 85f3331bcc64..a07d4c87a9b3 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1 index 0657d222daad..0b7d54c00ee9 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1 @@ -133,8 +133,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1 index 155b89027f88..6657bb682c35 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1 index bf72326ae284..3d45f165703a 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1 index ac5d07dbbe48..daeb80032710 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1 @@ -245,8 +245,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1 index ca6ef6b16a31..19d733c65c44 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1 @@ -305,8 +305,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1 index fb479b62ff0b..ddb612e65ea3 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1 @@ -208,8 +208,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1 index 2dfeb4846724..68f97a3c655c 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1 @@ -172,8 +172,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1 index 745d018a13e9..cbe6f69d8b06 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -315,8 +314,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -499,8 +497,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -707,8 +704,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -917,8 +913,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1122,8 +1117,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1351,8 +1345,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1590,8 +1583,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1776,8 +1768,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2003,8 +1994,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2188,8 +2178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2372,8 +2361,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2588,8 +2576,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2794,8 +2781,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3001,8 +2987,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3263,8 +3248,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3583,8 +3567,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3830,8 +3813,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4110,8 +4092,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4333,8 +4314,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4576,8 +4556,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4806,8 +4785,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5085,8 +5063,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5334,8 +5311,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5546,8 +5522,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5866,8 +5841,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6091,8 +6065,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6591,8 +6564,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1 index a71cb761f6e6..a6141ec6df11 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1 index 88d40b44b3b0..3d80fa372da1 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1 @@ -172,8 +172,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1 index 21780673bb80..9a9678527733 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1 @@ -151,8 +151,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1 index a5d637e87789..cda90f11526f 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1 @@ -208,8 +208,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1 index 95af977a36f4..0f97e62afe0d 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1 index b62c2206b494..cbb2252102ee 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1 @@ -249,8 +249,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1 index 44cf846d8ff2..28f4f419a940 100644 --- a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1 +++ b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1 @@ -176,8 +176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index bda3e2a7f48e..f7403dfbccd7 100644 --- a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxCertificate.ps1 b/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxCertificate.ps1 index 2cd9daa8a262..ae2808e4b8d0 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxCertificate.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxCertificate.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxConfiguration.ps1 b/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxConfiguration.ps1 index 9926c5bccb2e..142b831f21de 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxConfiguration.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxConfiguration.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxDeployment.ps1 b/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxDeployment.ps1 index fde86016d167..234e54ed1366 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxDeployment.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Get-AzNginxDeployment.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/Invoke-AzNginxAnalysisConfiguration.ps1 b/generated/Nginx/Nginx.Autorest/exports/Invoke-AzNginxAnalysisConfiguration.ps1 index 22687c4e77a5..e97b7e31f2d4 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Invoke-AzNginxAnalysisConfiguration.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Invoke-AzNginxAnalysisConfiguration.ps1 @@ -229,8 +229,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/New-AzNginxCertificate.ps1 b/generated/Nginx/Nginx.Autorest/exports/New-AzNginxCertificate.ps1 index 2d6a5320aa41..33bf6701aa49 100644 --- a/generated/Nginx/Nginx.Autorest/exports/New-AzNginxCertificate.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/New-AzNginxCertificate.ps1 @@ -212,8 +212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/New-AzNginxConfiguration.ps1 b/generated/Nginx/Nginx.Autorest/exports/New-AzNginxConfiguration.ps1 index 2c15f60835d1..ebf61321b516 100644 --- a/generated/Nginx/Nginx.Autorest/exports/New-AzNginxConfiguration.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/New-AzNginxConfiguration.ps1 @@ -223,8 +223,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/New-AzNginxDeployment.ps1 b/generated/Nginx/Nginx.Autorest/exports/New-AzNginxDeployment.ps1 index 33cfc6ed5c40..73fc889140eb 100644 --- a/generated/Nginx/Nginx.Autorest/exports/New-AzNginxDeployment.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/New-AzNginxDeployment.ps1 @@ -247,8 +247,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Nginx/Nginx.Autorest/exports/ProxyCmdletDefinitions.ps1 index fec64ccbf034..1e892c0abf12 100644 --- a/generated/Nginx/Nginx.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -391,8 +390,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -605,8 +603,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -907,8 +904,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1193,8 +1189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1489,8 +1484,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1809,8 +1803,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2056,8 +2049,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2303,8 +2295,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2529,8 +2520,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2803,8 +2793,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3089,8 +3078,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3439,8 +3427,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxCertificate.ps1 b/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxCertificate.ps1 index 7fc2eb40072c..9fdd16e5c0db 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxCertificate.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxCertificate.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxConfiguration.ps1 b/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxConfiguration.ps1 index 8a643ea63e7a..ce505e07e00d 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxConfiguration.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxConfiguration.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxDeployment.ps1 b/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxDeployment.ps1 index b8f3918568d7..d3ad9a2e8ce8 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxDeployment.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Remove-AzNginxDeployment.ps1 @@ -154,8 +154,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxCertificate.ps1 b/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxCertificate.ps1 index 62c4ab9cc419..cca4db323008 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxCertificate.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxCertificate.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxConfiguration.ps1 b/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxConfiguration.ps1 index cfdcdfdf0aa0..d93efb571b64 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxConfiguration.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxConfiguration.ps1 @@ -214,8 +214,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxDeployment.ps1 b/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxDeployment.ps1 index 890809197f58..5b90a34f3fe5 100644 --- a/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxDeployment.ps1 +++ b/generated/Nginx/Nginx.Autorest/exports/Update-AzNginxDeployment.ps1 @@ -278,8 +278,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Nginx/Nginx.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Nginx/Nginx.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index c8c7ae17d9fa..a771c9d75dda 100644 --- a/generated/Nginx/Nginx.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Nginx/Nginx.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Oracle/Oracle.Autorest/exports/Add-AzOracleCloudVMClusterVM.ps1 b/generated/Oracle/Oracle.Autorest/exports/Add-AzOracleCloudVMClusterVM.ps1 index 70612efddeef..34d972c6d4cd 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Add-AzOracleCloudVMClusterVM.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Add-AzOracleCloudVMClusterVM.ps1 @@ -200,8 +200,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabase.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabase.ps1 index f663bab73d72..b61beb6f7267 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabase.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabase.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseBackup.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseBackup.ps1 index d14c9f73da57..24b61d9cabeb 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseBackup.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseBackup.ps1 @@ -202,8 +202,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseCharacterSet.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseCharacterSet.ps1 index 829b7c818b96..52470405ddc1 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseCharacterSet.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseCharacterSet.ps1 @@ -194,8 +194,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseNationalCharacterSet.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseNationalCharacterSet.ps1 index ae58c04f8aa8..13e4b51ec956 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseNationalCharacterSet.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseNationalCharacterSet.ps1 @@ -194,8 +194,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseVersion.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseVersion.ps1 index 8b6940d0aa80..837894e8a52e 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseVersion.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleAutonomousDatabaseVersion.ps1 @@ -194,8 +194,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleCloudExadataInfrastructure.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleCloudExadataInfrastructure.ps1 index 5492f5caea45..65e64740dac7 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleCloudExadataInfrastructure.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleCloudExadataInfrastructure.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleCloudVMCluster.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleCloudVMCluster.ps1 index 69f57b3c241a..76deeb4402f8 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleCloudVMCluster.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleCloudVMCluster.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbNode.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbNode.ps1 index 88b725b94833..df855d39c309 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbNode.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbNode.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbServer.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbServer.ps1 index 3ec38d7706fd..ea15fe054150 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbServer.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbServer.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbSystem.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbSystem.ps1 index a0de0502f550..bb519ef65089 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbSystem.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbSystem.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbSystemShape.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbSystemShape.ps1 index 4cce0da1cf5b..83e2324bf95d 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbSystemShape.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbSystemShape.ps1 @@ -207,8 +207,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbVersion.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbVersion.ps1 index 29e8436ea005..5da29bd124b6 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbVersion.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDbVersion.ps1 @@ -240,8 +240,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDnsPrivateView.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDnsPrivateView.ps1 index de87ddeef391..9cda34c1fc58 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDnsPrivateView.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDnsPrivateView.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDnsPrivateZone.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDnsPrivateZone.ps1 index c944f6aade9e..629aab68e7f9 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDnsPrivateZone.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleDnsPrivateZone.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExadbVMCluster.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExadbVMCluster.ps1 index ac9b5511a03f..3b8972ef343c 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExadbVMCluster.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExadbVMCluster.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExascaleDbNode.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExascaleDbNode.ps1 index 209ac17234bb..1fd94f722591 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExascaleDbNode.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExascaleDbNode.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExascaleDbStorageVault.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExascaleDbStorageVault.ps1 index afa3d7b996ac..a1a8ef93dd6d 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExascaleDbStorageVault.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleExascaleDbStorageVault.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleFlexComponent.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleFlexComponent.ps1 index c516df1f00f7..b1fe04aacef2 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleFlexComponent.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleFlexComponent.ps1 @@ -202,8 +202,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleGiMinorVersion.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleGiMinorVersion.ps1 index 69e780c80a57..73462892c81c 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleGiMinorVersion.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleGiMinorVersion.ps1 @@ -253,8 +253,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleGiVersion.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleGiVersion.ps1 index 6ed0781bbcc1..123d4c9e9b56 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleGiVersion.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleGiVersion.ps1 @@ -214,8 +214,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleNetworkAnchor.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleNetworkAnchor.ps1 index 9743d4798568..661a2e857960 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleNetworkAnchor.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleNetworkAnchor.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleResourceAnchor.ps1 b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleResourceAnchor.ps1 index d7bdbee463f9..b36ef5951244 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleResourceAnchor.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Get-AzOracleResourceAnchor.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionAutonomousDatabase.ps1 b/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionAutonomousDatabase.ps1 index d43a11200fb9..cca38c17781e 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionAutonomousDatabase.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionAutonomousDatabase.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionDbNode.ps1 b/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionDbNode.ps1 index 9c6d8a8c140d..c916be91a964 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionDbNode.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionDbNode.ps1 @@ -256,8 +256,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionExascaleDbNode.ps1 b/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionExascaleDbNode.ps1 index 7ef750627889..d03abe346297 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionExascaleDbNode.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleActionExascaleDbNode.ps1 @@ -260,8 +260,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleSwitchoverAutonomousDatabase.ps1 b/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleSwitchoverAutonomousDatabase.ps1 index 7581f72c8639..d20f78a1ec97 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleSwitchoverAutonomousDatabase.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Invoke-AzOracleSwitchoverAutonomousDatabase.ps1 @@ -207,8 +207,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleAutonomousDatabase.ps1 b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleAutonomousDatabase.ps1 index 888fba4cbed0..282ae582ca8c 100644 --- a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleAutonomousDatabase.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleAutonomousDatabase.ps1 @@ -363,8 +363,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleAutonomousDatabaseBackup.ps1 b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleAutonomousDatabaseBackup.ps1 index a2f734be7677..dc65aa24ea74 100644 --- a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleAutonomousDatabaseBackup.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleAutonomousDatabaseBackup.ps1 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleCloudExadataInfrastructure.ps1 b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleCloudExadataInfrastructure.ps1 index e46fb0525139..13db70112d7d 100644 --- a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleCloudExadataInfrastructure.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleCloudExadataInfrastructure.ps1 @@ -292,8 +292,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleCloudVMCluster.ps1 b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleCloudVMCluster.ps1 index 5ecb75f24cc0..a95b48d21e3f 100644 --- a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleCloudVMCluster.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleCloudVMCluster.ps1 @@ -381,8 +381,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleDbSystem.ps1 b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleDbSystem.ps1 index 0c480e174042..aee587c0eb78 100644 --- a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleDbSystem.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleDbSystem.ps1 @@ -331,8 +331,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleExadbVMCluster.ps1 b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleExadbVMCluster.ps1 index c95c9d74a509..652df87d5d07 100644 --- a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleExadbVMCluster.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleExadbVMCluster.ps1 @@ -354,8 +354,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleExascaleDbStorageVault.ps1 b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleExascaleDbStorageVault.ps1 index 91d78f114159..f6ec4eb96dde 100644 --- a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleExascaleDbStorageVault.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleExascaleDbStorageVault.ps1 @@ -200,8 +200,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleNetworkAnchor.ps1 b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleNetworkAnchor.ps1 index 672f15cdb6b6..be79eb93cce2 100644 --- a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleNetworkAnchor.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleNetworkAnchor.ps1 @@ -232,8 +232,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleResourceAnchor.ps1 b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleResourceAnchor.ps1 index 270b57901a51..30d32602d91f 100644 --- a/generated/Oracle/Oracle.Autorest/exports/New-AzOracleResourceAnchor.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/New-AzOracleResourceAnchor.ps1 @@ -161,8 +161,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Oracle/Oracle.Autorest/exports/ProxyCmdletDefinitions.ps1 index b732cba64824..85e847c0d869 100644 --- a/generated/Oracle/Oracle.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -200,8 +200,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -475,8 +474,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -742,8 +740,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1009,8 +1006,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1276,8 +1272,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1509,8 +1504,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1744,8 +1738,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1977,8 +1970,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2253,8 +2245,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2529,8 +2520,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2809,8 +2799,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3044,8 +3033,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3357,8 +3345,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3625,8 +3612,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3893,8 +3879,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4126,8 +4111,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4402,8 +4386,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4635,8 +4618,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4910,8 +4892,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5236,8 +5217,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5524,8 +5504,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5759,8 +5738,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5994,8 +5972,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6263,8 +6240,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6592,8 +6568,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6926,8 +6901,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7208,8 +7182,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7438,8 +7411,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7873,8 +7845,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8237,8 +8208,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8690,8 +8660,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9093,8 +9062,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9519,8 +9487,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9791,8 +9758,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10095,8 +10061,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10328,8 +10293,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10617,8 +10581,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10864,8 +10827,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11110,8 +11072,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11397,8 +11358,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11647,8 +11607,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11895,8 +11854,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12187,8 +12145,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12437,8 +12394,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12683,8 +12639,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12931,8 +12886,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13179,8 +13133,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13494,8 +13447,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13780,8 +13732,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14257,8 +14208,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14659,8 +14609,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15036,8 +14985,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15322,8 +15270,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15606,8 +15553,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15875,8 +15821,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16181,8 +16126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16451,8 +16395,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleAutonomousDatabase.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleAutonomousDatabase.ps1 index e9ab11464c25..47b5d5aeb6e6 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleAutonomousDatabase.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleAutonomousDatabase.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleAutonomousDatabaseBackup.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleAutonomousDatabaseBackup.ps1 index 119827edb6da..86ef849c86df 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleAutonomousDatabaseBackup.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleAutonomousDatabaseBackup.ps1 @@ -217,8 +217,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudExadataInfrastructure.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudExadataInfrastructure.ps1 index 2967148123f9..a700c2e20836 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudExadataInfrastructure.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudExadataInfrastructure.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudVMCluster.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudVMCluster.ps1 index bd565b45e734..ff8f962b8b27 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudVMCluster.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudVMCluster.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudVMClusterVM.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudVMClusterVM.ps1 index 4d4a37404f1c..06d5ead290bf 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudVMClusterVM.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleCloudVMClusterVM.ps1 @@ -216,8 +216,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleDbSystem.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleDbSystem.ps1 index 0bcc43043adf..ff93d2391b0d 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleDbSystem.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleDbSystem.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExadbVMCluster.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExadbVMCluster.ps1 index b0923b1b8694..886911d81ba1 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExadbVMCluster.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExadbVMCluster.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExadbVMClusterVM.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExadbVMClusterVM.ps1 index cba0c6abbe5f..0c0db6dd2edd 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExadbVMClusterVM.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExadbVMClusterVM.ps1 @@ -221,8 +221,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExascaleDbStorageVault.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExascaleDbStorageVault.ps1 index f304429244fa..efa89cf9eba3 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExascaleDbStorageVault.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleExascaleDbStorageVault.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleNetworkAnchor.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleNetworkAnchor.ps1 index cea5717bc40f..4c3702ee2888 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleNetworkAnchor.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleNetworkAnchor.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleResourceAnchor.ps1 b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleResourceAnchor.ps1 index 445ac193ab24..81661b87f545 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleResourceAnchor.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Remove-AzOracleResourceAnchor.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Rename-AzOracleAutonomousDatabaseDisasterRecoveryConfiguration.ps1 b/generated/Oracle/Oracle.Autorest/exports/Rename-AzOracleAutonomousDatabaseDisasterRecoveryConfiguration.ps1 index d7bbb7bf14e6..e47ea4e00894 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Rename-AzOracleAutonomousDatabaseDisasterRecoveryConfiguration.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Rename-AzOracleAutonomousDatabaseDisasterRecoveryConfiguration.ps1 @@ -244,8 +244,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Restore-AzOracleAutonomousDatabase.ps1 b/generated/Oracle/Oracle.Autorest/exports/Restore-AzOracleAutonomousDatabase.ps1 index 664306cf5441..9ffe36ddb7ed 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Restore-AzOracleAutonomousDatabase.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Restore-AzOracleAutonomousDatabase.ps1 @@ -211,8 +211,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleAutonomousDatabase.ps1 b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleAutonomousDatabase.ps1 index 7bc25e74d1c9..3a1e8b6ad3a6 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleAutonomousDatabase.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleAutonomousDatabase.ps1 @@ -402,8 +402,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleCloudExadataInfrastructure.ps1 b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleCloudExadataInfrastructure.ps1 index e3b8d0d3f9b0..6ac2302d44cc 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleCloudExadataInfrastructure.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleCloudExadataInfrastructure.ps1 @@ -329,8 +329,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleCloudVMCluster.ps1 b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleCloudVMCluster.ps1 index bfaba5a14754..200083772ce5 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleCloudVMCluster.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleCloudVMCluster.ps1 @@ -304,8 +304,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleDbSystem.ps1 b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleDbSystem.ps1 index 6515cb0de090..c213f2b97e9e 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleDbSystem.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleDbSystem.ps1 @@ -213,8 +213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleExadbVMCluster.ps1 b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleExadbVMCluster.ps1 index 804b8465cf32..d2dcbc0549b4 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleExadbVMCluster.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleExadbVMCluster.ps1 @@ -211,8 +211,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleExascaleDbStorageVault.ps1 b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleExascaleDbStorageVault.ps1 index 0dea77828661..f4eb44bef573 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleExascaleDbStorageVault.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleExascaleDbStorageVault.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleNetworkAnchor.ps1 b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleNetworkAnchor.ps1 index a1b405942e9d..2eb481d59b1c 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleNetworkAnchor.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleNetworkAnchor.ps1 @@ -233,8 +233,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleResourceAnchor.ps1 b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleResourceAnchor.ps1 index d4a0ddd1e952..49482ca1e3c5 100644 --- a/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleResourceAnchor.ps1 +++ b/generated/Oracle/Oracle.Autorest/exports/Update-AzOracleResourceAnchor.ps1 @@ -197,8 +197,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Oracle/Oracle.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Oracle/Oracle.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 6f4df4afcbd4..d7286fef6637 100644 --- a/generated/Oracle/Oracle.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Oracle/Oracle.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalAvailableGroundStation.ps1 b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalAvailableGroundStation.ps1 index da3ffdf397fb..18d6a76ca05c 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalAvailableGroundStation.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalAvailableGroundStation.ps1 @@ -107,8 +107,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalAvailableSpacecraftContact.ps1 b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalAvailableSpacecraftContact.ps1 index 95fc8ec20db4..5f4e481f243c 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalAvailableSpacecraftContact.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalAvailableSpacecraftContact.ps1 @@ -185,8 +185,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalContactProfile.ps1 b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalContactProfile.ps1 index 0fc7cbf1aa3c..335de654655c 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalContactProfile.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalContactProfile.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalSpacecraft.ps1 b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalSpacecraft.ps1 index 63c1c53e586e..47a3781a8527 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalSpacecraft.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalSpacecraft.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalSpacecraftContact.ps1 b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalSpacecraftContact.ps1 index f084bf66b03f..947f8d13ee7e 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalSpacecraftContact.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Get-AzOrbitalSpacecraftContact.ps1 @@ -172,8 +172,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalContactProfile.ps1 b/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalContactProfile.ps1 index 7664725c9469..a7558dd803e0 100644 --- a/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalContactProfile.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalContactProfile.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a contact profile. +Create a contact profile. .Description -create a contact profile. +Create a contact profile. .Example $linkChannel = New-AzOrbitalContactProfileLinkChannelObject -BandwidthMHz 15 -CenterFrequencyMHz 8160 -EndPointIPAddress 10.0.1.0 -EndPointName AQUA_VM -EndPointPort 51103 -EndPointProtocol TCP -Name channel1 -DecodingConfiguration na -DemodulationConfiguration na -EncodingConfiguration na -ModulationConfiguration aqua_direct_broadcast @@ -233,8 +233,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalSpacecraft.ps1 b/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalSpacecraft.ps1 index 9922b57064ad..183c91f3c6c1 100644 --- a/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalSpacecraft.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalSpacecraft.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a spacecraft resource. +Create a spacecraft resource. .Description -create a spacecraft resource. +Create a spacecraft resource. .Example $linkObject = New-AzOrbitalSpacecraftLinkObject -BandwidthMHz 15 -CenterFrequencyMHz 8160 -Direction 'Downlink' -Name spacecraftlink -Polarization 'RHCP' @@ -32,11 +32,11 @@ 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. LINK : Immutable list of Spacecraft links. - BandwidthMHz : Bandwidth in MHz. - CenterFrequencyMHz : Center Frequency in MHz. - Direction : Direction (Uplink or Downlink). - Name : Link name. - Polarization : Polarization. e.g. (RHCP, LHCP). + [BandwidthMHz ]: Bandwidth in MHz. + [CenterFrequencyMHz ]: Center Frequency in MHz. + [Direction ]: Direction (Uplink or Downlink). + [Name ]: Link name. + [Polarization ]: Polarization. e.g. (RHCP, LHCP). .Link https://learn.microsoft.com/powershell/module/az.orbital/new-azorbitalspacecraft #> @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalSpacecraftContact.ps1 b/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalSpacecraftContact.ps1 index 9ed24da5789e..b397cbd0710b 100644 --- a/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalSpacecraftContact.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/New-AzOrbitalSpacecraftContact.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a contact. +Create a contact. .Description -create a contact. +Create a contact. .Example $dateS = Get-Date -Year 2023 -Month 5 -Day 10 -Hour 11 -Minute 06 -Second 07 $dateE = Get-Date -Year 2023 -Month 5 -Day 10 -Hour 11 -Minute 16 -Second 21 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Orbital/Orbital.Autorest/exports/ProxyCmdletDefinitions.ps1 index 1b5aadc71fa8..2fef778fd465 100644 --- a/generated/Orbital/Orbital.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -107,8 +107,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -362,8 +361,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -587,8 +585,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -832,8 +829,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1057,8 +1053,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1146,9 +1141,9 @@ end { <# .Synopsis -create a contact profile. +Create a contact profile. .Description -create a contact profile. +Create a contact profile. .Example $linkChannel = New-AzOrbitalContactProfileLinkChannelObject -BandwidthMHz 15 -CenterFrequencyMHz 8160 -EndPointIPAddress 10.0.1.0 -EndPointName AQUA_VM -EndPointPort 51103 -EndPointProtocol TCP -Name channel1 -DecodingConfiguration na -DemodulationConfiguration na -EncodingConfiguration na -ModulationConfiguration aqua_direct_broadcast @@ -1363,8 +1358,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1451,9 +1445,9 @@ end { <# .Synopsis -create a contact. +Create a contact. .Description -create a contact. +Create a contact. .Example $dateS = Get-Date -Year 2023 -Month 5 -Day 10 -Hour 11 -Minute 06 -Second 07 $dateE = Get-Date -Year 2023 -Month 5 -Day 10 -Hour 11 -Minute 16 -Second 21 @@ -1638,8 +1632,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1727,9 +1720,9 @@ end { <# .Synopsis -create a spacecraft resource. +Create a spacecraft resource. .Description -create a spacecraft resource. +Create a spacecraft resource. .Example $linkObject = New-AzOrbitalSpacecraftLinkObject -BandwidthMHz 15 -CenterFrequencyMHz 8160 -Direction 'Downlink' -Name spacecraftlink -Polarization 'RHCP' @@ -1743,11 +1736,11 @@ 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. LINK : Immutable list of Spacecraft links. - BandwidthMHz : Bandwidth in MHz. - CenterFrequencyMHz : Center Frequency in MHz. - Direction : Direction (Uplink or Downlink). - Name : Link name. - Polarization : Polarization. e.g. (RHCP, LHCP). + [BandwidthMHz ]: Bandwidth in MHz. + [CenterFrequencyMHz ]: Center Frequency in MHz. + [Direction ]: Direction (Uplink or Downlink). + [Name ]: Link name. + [Polarization ]: Polarization. e.g. (RHCP, LHCP). .Link https://learn.microsoft.com/powershell/module/az.orbital/new-azorbitalspacecraft #> @@ -1906,8 +1899,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2132,8 +2124,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2380,8 +2371,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2606,8 +2596,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2693,9 +2682,9 @@ end { <# .Synopsis -update the specified contact profile tags. +Update the specified contact profile tags. .Description -update the specified contact profile tags. +Update the specified contact profile tags. .Example Update-AzOrbitalContactProfile -Name azps-orbital-contactprofile -ResourceGroupName azpstest-gp -Tag @{"123"="abc"} .Example @@ -2852,8 +2841,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2941,9 +2929,9 @@ end { <# .Synopsis -update a contact. +Update a contact. .Description -update a contact. +Update a contact. .Example Update-AzOrbitalSpacecraftContact -Name azps-orbital-contact -ResourceGroupName azpstest-gp -SpacecraftName SwedenAQUASpacecraft -ContactProfileId "/subscriptions/11111111-2222-3333-4444-123456789101/resourceGroups/azpstest-gp/providers/Microsoft.Orbital/contactProfiles/Sweden-contactprofile" @@ -3102,8 +3090,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3190,9 +3177,9 @@ end { <# .Synopsis -update the specified spacecraft tags. +Update the specified spacecraft tags. .Description -update the specified spacecraft tags. +Update the specified spacecraft tags. .Example Update-AzOrbitalSpacecraft -ResourceGroupName azpstest-gp -Name AQUA -Tag @{"123"="abc"} .Example @@ -3350,8 +3337,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalContactProfile.ps1 b/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalContactProfile.ps1 index 3da56fe5694b..9822de947de2 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalContactProfile.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalContactProfile.ps1 @@ -154,8 +154,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalSpacecraft.ps1 b/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalSpacecraft.ps1 index 7b53f5bcc99a..e76addd14033 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalSpacecraft.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalSpacecraft.ps1 @@ -154,8 +154,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalSpacecraftContact.ps1 b/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalSpacecraftContact.ps1 index bf4b3d3acbcf..e7b53ee78b3f 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalSpacecraftContact.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Remove-AzOrbitalSpacecraftContact.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalContactProfile.ps1 b/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalContactProfile.ps1 index dd354f8ce78b..78be81f8b052 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalContactProfile.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalContactProfile.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the specified contact profile tags. +Update the specified contact profile tags. .Description -update the specified contact profile tags. +Update the specified contact profile tags. .Example Update-AzOrbitalContactProfile -Name azps-orbital-contactprofile -ResourceGroupName azpstest-gp -Tag @{"123"="abc"} .Example @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalSpacecraft.ps1 b/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalSpacecraft.ps1 index c8e18432d91d..049945bbe5a3 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalSpacecraft.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalSpacecraft.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the specified spacecraft tags. +Update the specified spacecraft tags. .Description -update the specified spacecraft tags. +Update the specified spacecraft tags. .Example Update-AzOrbitalSpacecraft -ResourceGroupName azpstest-gp -Name AQUA -Tag @{"123"="abc"} .Example @@ -176,8 +176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalSpacecraftContact.ps1 b/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalSpacecraftContact.ps1 index f768c8c5556d..3d035f014d77 100644 --- a/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalSpacecraftContact.ps1 +++ b/generated/Orbital/Orbital.Autorest/exports/Update-AzOrbitalSpacecraftContact.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a contact. +Update a contact. .Description -update a contact. +Update a contact. .Example Update-AzOrbitalSpacecraftContact -Name azps-orbital-contact -ResourceGroupName azpstest-gp -SpacecraftName SwedenAQUASpacecraft -ContactProfileId "/subscriptions/11111111-2222-3333-4444-123456789101/resourceGroups/azpstest-gp/providers/Microsoft.Orbital/contactProfiles/Sweden-contactprofile" @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/AvailableContacts.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/AvailableContacts.cs index dfdc04abf316..f1c3ab763e49 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/AvailableContacts.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/AvailableContacts.cs @@ -40,40 +40,40 @@ public partial class AvailableContacts : public float? MaximumElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).MaximumElevationDegree; } /// Internal Acessors for EndAzimuthDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.EndAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).EndAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).EndAzimuthDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.EndAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).EndAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).EndAzimuthDegree = value ?? default(float); } /// Internal Acessors for EndElevationDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.EndElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).EndElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).EndElevationDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.EndElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).EndElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).EndElevationDegree = value ?? default(float); } /// Internal Acessors for GroundStationName string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.GroundStationName { get => this._groundStationName; set { {_groundStationName = value;} } } /// Internal Acessors for MaximumElevationDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.MaximumElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).MaximumElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).MaximumElevationDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.MaximumElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).MaximumElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).MaximumElevationDegree = value ?? default(float); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsProperties Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.AvailableContactsProperties()); set { {_property = value;} } } /// Internal Acessors for RxEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.RxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).RxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).RxEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.RxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).RxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).RxEndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for RxStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.RxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).RxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).RxStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.RxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).RxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).RxStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Spacecraft Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsSpacecraft Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.Spacecraft { get => (this._spacecraft = this._spacecraft ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.AvailableContactsSpacecraft()); set { {_spacecraft = value;} } } /// Internal Acessors for StartAzimuthDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.StartAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).StartAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).StartAzimuthDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.StartAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).StartAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).StartAzimuthDegree = value ?? default(float); } /// Internal Acessors for StartElevationDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.StartElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).StartElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).StartElevationDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.StartElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).StartElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).StartElevationDegree = value ?? default(float); } /// Internal Acessors for TxEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.TxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).TxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).TxEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.TxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).TxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).TxEndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for TxStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.TxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).TxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).TxStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsInternal.TxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).TxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)Property).TxStartTime = value ?? default(global::System.DateTime); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAvailableContactsProperties _property; diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/AvailableContactsProperties.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/AvailableContactsProperties.cs index 1e3b9c22cf21..a696ebd40ad4 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/AvailableContactsProperties.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/AvailableContactsProperties.cs @@ -32,31 +32,31 @@ public partial class AvailableContactsProperties : public float? MaximumElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).MaximumElevationDegree; } /// Internal Acessors for EndAzimuthDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.EndAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).EndAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).EndAzimuthDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.EndAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).EndAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).EndAzimuthDegree = value ?? default(float); } /// Internal Acessors for EndElevationDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.EndElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).EndElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).EndElevationDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.EndElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).EndElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).EndElevationDegree = value ?? default(float); } /// Internal Acessors for MaximumElevationDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.MaximumElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).MaximumElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).MaximumElevationDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.MaximumElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).MaximumElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).MaximumElevationDegree = value ?? default(float); } /// Internal Acessors for RxEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.RxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).RxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).RxEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.RxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).RxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).RxEndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for RxStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.RxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).RxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).RxStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.RxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).RxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).RxStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StartAzimuthDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.StartAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).StartAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).StartAzimuthDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.StartAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).StartAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).StartAzimuthDegree = value ?? default(float); } /// Internal Acessors for StartElevationDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.StartElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).StartElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).StartElevationDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.StartElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).StartElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).StartElevationDegree = value ?? default(float); } /// Internal Acessors for TxEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.TxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).TxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).TxEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.TxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).TxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).TxEndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for TxStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.TxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).TxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).TxStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal.TxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).TxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInstancePropertiesInternal)__contactInstanceProperties).TxStartTime = value ?? default(global::System.DateTime); } /// Time to lost receiving a signal (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/Contact.PowerShell.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/Contact.PowerShell.cs index f095dc90efa0..2aceee61bf68 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/Contact.PowerShell.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/Contact.PowerShell.cs @@ -138,11 +138,11 @@ internal Contact(global::System.Collections.IDictionary content) } if (content.Contains("ReservationStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationStartTime = (global::System.DateTime) content.GetValueForProperty("ReservationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationStartTime = (global::System.DateTime?) content.GetValueForProperty("ReservationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ReservationEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationEndTime = (global::System.DateTime) content.GetValueForProperty("ReservationEndTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationEndTime = (global::System.DateTime?) content.GetValueForProperty("ReservationEndTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("RxStartTime")) { @@ -279,11 +279,11 @@ internal Contact(global::System.Management.Automation.PSObject content) } if (content.Contains("ReservationStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationStartTime = (global::System.DateTime) content.GetValueForProperty("ReservationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationStartTime = (global::System.DateTime?) content.GetValueForProperty("ReservationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ReservationEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationEndTime = (global::System.DateTime) content.GetValueForProperty("ReservationEndTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationEndTime = (global::System.DateTime?) content.GetValueForProperty("ReservationEndTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal)this).ReservationEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("RxStartTime")) { diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/Contact.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/Contact.cs index 660a55c2e069..0be57da9daf1 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/Contact.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/Contact.cs @@ -23,12 +23,12 @@ public partial class Contact : /// [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string AntennaConfigurationDestinationIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationDestinationIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationDestinationIP = value ?? null; } + public string AntennaConfigurationDestinationIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationDestinationIP; } /// List of Source IP [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public System.Collections.Generic.List AntennaConfigurationSourceIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationSourceIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationSourceIP = value ?? null /* arrayOf */; } + public System.Collections.Generic.List AntennaConfigurationSourceIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationSourceIP; } /// Azimuth of the antenna at the end of the contact in decimal degrees. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] @@ -48,7 +48,7 @@ public partial class Contact : /// Azure Ground Station name. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.FormatTable(Index = 1)] - public string GroundStationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).GroundStationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).GroundStationName = value ; } + public string GroundStationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).GroundStationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).GroundStationName = value ?? null; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -63,61 +63,85 @@ public partial class Contact : public float? MaximumElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).MaximumElevationDegree; } /// Internal Acessors for AntennaConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfiguration Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.AntennaConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfiguration Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.AntennaConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfiguration = value ?? null /* model class */; } + + /// Internal Acessors for AntennaConfigurationDestinationIP + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.AntennaConfigurationDestinationIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationDestinationIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationDestinationIP = value ?? null; } + + /// Internal Acessors for AntennaConfigurationSourceIP + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.AntennaConfigurationSourceIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationSourceIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).AntennaConfigurationSourceIP = value ?? null /* arrayOf */; } /// Internal Acessors for EndAzimuthDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.EndAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).EndAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).EndAzimuthDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.EndAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).EndAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).EndAzimuthDegree = value ?? default(float); } /// Internal Acessors for EndElevationDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.EndElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).EndElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).EndElevationDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.EndElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).EndElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).EndElevationDegree = value ?? default(float); } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ErrorMessage = value ?? null; } /// Internal Acessors for MaximumElevationDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.MaximumElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).MaximumElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).MaximumElevationDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.MaximumElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).MaximumElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).MaximumElevationDegree = value ?? default(float); } /// Internal Acessors for Profile - Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesContactProfile Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.Profile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ContactProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ContactProfile = value; } + Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesContactProfile Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.Profile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ContactProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ContactProfile = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsProperties Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ContactsProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for RxEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.RxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).RxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).RxEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.RxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).RxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).RxEndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for RxStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.RxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).RxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).RxStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.RxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).RxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).RxStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StartAzimuthDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.StartAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).StartAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).StartAzimuthDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.StartAzimuthDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).StartAzimuthDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).StartAzimuthDegree = value ?? default(float); } /// Internal Acessors for StartElevationDegree - float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.StartElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).StartElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).StartElevationDegree = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.StartElevationDegree { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).StartElevationDegree; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).StartElevationDegree = value ?? default(float); } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).Status = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).Status = value ?? null; } /// Internal Acessors for TxEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.TxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).TxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).TxEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.TxEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).TxEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).TxEndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for TxStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.TxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).TxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).TxStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactInternal.TxStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).TxStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).TxStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] @@ -145,12 +169,12 @@ public partial class Contact : /// Reservation end time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.FormatTable(Index = 4)] - public global::System.DateTime ReservationEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ReservationEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ReservationEndTime = value ; } + public global::System.DateTime? ReservationEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ReservationEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ReservationEndTime = value ?? default(global::System.DateTime); } /// Reservation start time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.FormatTable(Index = 3)] - public global::System.DateTime ReservationStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ReservationStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ReservationStartTime = value ; } + public global::System.DateTime? ReservationStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ReservationStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)Property).ReservationStartTime = value ?? default(global::System.DateTime); } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Owned)] @@ -187,37 +211,37 @@ public partial class Contact : /// [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// Transmit end time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] @@ -318,7 +342,7 @@ public partial interface IContact : string ErrorMessage { get; } /// Azure Ground Station name. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -362,7 +386,7 @@ public partial interface IContact : string ProvisioningState { get; } /// Reservation end time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -370,10 +394,10 @@ public partial interface IContact : Description = @"Reservation end time of a contact (ISO 8601 UTC standard).", SerializedName = @"reservationEndTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime ReservationEndTime { get; set; } + global::System.DateTime? ReservationEndTime { get; set; } /// Reservation start time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -381,7 +405,7 @@ public partial interface IContact : Description = @"Reservation start time of a contact (ISO 8601 UTC standard).", SerializedName = @"reservationStartTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime ReservationStartTime { get; set; } + global::System.DateTime? ReservationStartTime { get; set; } /// Receive end time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( Required = false, @@ -493,9 +517,9 @@ internal partial interface IContactInternal : /// The current state of the resource's creation, deletion, or modification. string ProvisioningState { get; set; } /// Reservation end time of a contact (ISO 8601 UTC standard). - global::System.DateTime ReservationEndTime { get; set; } + global::System.DateTime? ReservationEndTime { get; set; } /// Reservation start time of a contact (ISO 8601 UTC standard). - global::System.DateTime ReservationStartTime { get; set; } + global::System.DateTime? ReservationStartTime { get; set; } /// Receive end time of a contact (ISO 8601 UTC standard). global::System.DateTime? RxEndTime { get; set; } /// Receive start time of a contact (ISO 8601 UTC standard). diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactProfile.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactProfile.cs index 4350e3577f3b..db548795444a 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactProfile.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactProfile.cs @@ -50,28 +50,46 @@ public partial class ContactProfile : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.FormatTable(Index = 1)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for NetworkConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesNetworkConfiguration Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfileInternal.NetworkConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)Property).NetworkConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)Property).NetworkConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesNetworkConfiguration Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfileInternal.NetworkConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)Property).NetworkConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)Property).NetworkConfiguration = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfileProperties Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfileInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ContactProfileProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfileInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfileInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// /// Minimum viable elevation for the contact in decimal degrees. Used for listing the available contacts with a spacecraft @@ -125,37 +143,37 @@ public partial class ContactProfile : /// [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactProfileProperties.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactProfileProperties.cs index a0533941907a..9cf269499a0e 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactProfileProperties.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactProfileProperties.cs @@ -37,10 +37,10 @@ public partial class ContactProfileProperties : public System.Collections.Generic.List Link { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).Link; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).Link = value ; } /// Internal Acessors for NetworkConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesNetworkConfiguration Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal.NetworkConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).NetworkConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).NetworkConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesNetworkConfiguration Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal.NetworkConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).NetworkConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).NetworkConfiguration = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).ProvisioningState = value ?? null; } /// /// Minimum viable elevation for the contact in decimal degrees. Used for listing the available contacts with a spacecraft @@ -58,7 +58,7 @@ public partial class ContactProfileProperties : /// Network configuration of customer virtual network. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesNetworkConfiguration NetworkConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).NetworkConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).NetworkConfiguration = value ; } + internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesNetworkConfiguration NetworkConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).NetworkConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfilesPropertiesInternal)__contactProfilesProperties).NetworkConfiguration = value ?? null /* model class */; } /// /// ARM resource identifier of the subnet delegated to the Microsoft.Orbital/orbitalGateways. Needs to be at least a class diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.PowerShell.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.PowerShell.cs index 4460139b8053..098a6f0af3b8 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.PowerShell.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.PowerShell.cs @@ -94,11 +94,11 @@ internal ContactsProperties(global::System.Collections.IDictionary content) } if (content.Contains("ReservationStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationStartTime = (global::System.DateTime) content.GetValueForProperty("ReservationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationStartTime = (global::System.DateTime?) content.GetValueForProperty("ReservationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ReservationEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationEndTime = (global::System.DateTime) content.GetValueForProperty("ReservationEndTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationEndTime = (global::System.DateTime?) content.GetValueForProperty("ReservationEndTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("RxStartTime")) { @@ -191,11 +191,11 @@ internal ContactsProperties(global::System.Management.Automation.PSObject conten } if (content.Contains("ReservationStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationStartTime = (global::System.DateTime) content.GetValueForProperty("ReservationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationStartTime = (global::System.DateTime?) content.GetValueForProperty("ReservationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ReservationEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationEndTime = (global::System.DateTime) content.GetValueForProperty("ReservationEndTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationEndTime = (global::System.DateTime?) content.GetValueForProperty("ReservationEndTime",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal)this).ReservationEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("RxStartTime")) { diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.cs index 62de915e7349..9060c455fb02 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.cs @@ -24,11 +24,11 @@ public partial class ContactsProperties : /// The destination IP a packet can be sent to. This would for example be the TCP endpoint you would send data to. /// [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] - public string AntennaConfigurationDestinationIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).DestinationIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).DestinationIP = value ?? null; } + public string AntennaConfigurationDestinationIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).DestinationIP; } /// List of Source IP [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] - public System.Collections.Generic.List AntennaConfigurationSourceIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).SourceIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).SourceIP = value ?? null /* arrayOf */; } + public System.Collections.Generic.List AntennaConfigurationSourceIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).SourceIP; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesContactProfile _contactProfile; @@ -79,6 +79,12 @@ public partial class ContactsProperties : /// Internal Acessors for AntennaConfiguration Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfiguration Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal.AntennaConfiguration { get => (this._antennaConfiguration = this._antennaConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ContactsPropertiesAntennaConfiguration()); set { {_antennaConfiguration = value;} } } + /// Internal Acessors for AntennaConfigurationDestinationIP + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal.AntennaConfigurationDestinationIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).DestinationIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).DestinationIP = value ?? null; } + + /// Internal Acessors for AntennaConfigurationSourceIP + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal.AntennaConfigurationSourceIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).SourceIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesAntennaConfigurationInternal)AntennaConfiguration).SourceIP = value ?? null /* arrayOf */; } + /// Internal Acessors for ContactProfile Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesContactProfile Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactsPropertiesInternal.ContactProfile { get => (this._contactProfile = this._contactProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ContactsPropertiesContactProfile()); set { {_contactProfile = value;} } } @@ -126,18 +132,18 @@ public partial class ContactsProperties : public string ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private global::System.DateTime _reservationEndTime; + private global::System.DateTime? _reservationEndTime; /// Reservation end time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Owned)] - public global::System.DateTime ReservationEndTime { get => this._reservationEndTime; set => this._reservationEndTime = value; } + public global::System.DateTime? ReservationEndTime { get => this._reservationEndTime; set => this._reservationEndTime = value; } /// Backing field for property. - private global::System.DateTime _reservationStartTime; + private global::System.DateTime? _reservationStartTime; /// Reservation start time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Owned)] - public global::System.DateTime ReservationStartTime { get => this._reservationStartTime; set => this._reservationStartTime = value; } + public global::System.DateTime? ReservationStartTime { get => this._reservationStartTime; set => this._reservationStartTime = value; } /// Backing field for property. private global::System.DateTime? _rxEndTime; @@ -268,7 +274,7 @@ public partial interface IContactsProperties : string ErrorMessage { get; } /// Azure Ground Station name. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -301,7 +307,7 @@ public partial interface IContactsProperties : string ProvisioningState { get; } /// Reservation end time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -309,10 +315,10 @@ public partial interface IContactsProperties : Description = @"Reservation end time of a contact (ISO 8601 UTC standard).", SerializedName = @"reservationEndTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime ReservationEndTime { get; set; } + global::System.DateTime? ReservationEndTime { get; set; } /// Reservation start time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -320,7 +326,7 @@ public partial interface IContactsProperties : Description = @"Reservation start time of a contact (ISO 8601 UTC standard).", SerializedName = @"reservationStartTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime ReservationStartTime { get; set; } + global::System.DateTime? ReservationStartTime { get; set; } /// Receive end time of a contact (ISO 8601 UTC standard). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( Required = false, @@ -430,9 +436,9 @@ internal partial interface IContactsPropertiesInternal /// The current state of the resource's creation, deletion, or modification. string ProvisioningState { get; set; } /// Reservation end time of a contact (ISO 8601 UTC standard). - global::System.DateTime ReservationEndTime { get; set; } + global::System.DateTime? ReservationEndTime { get; set; } /// Reservation start time of a contact (ISO 8601 UTC standard). - global::System.DateTime ReservationStartTime { get; set; } + global::System.DateTime? ReservationStartTime { get; set; } /// Receive end time of a contact (ISO 8601 UTC standard). global::System.DateTime? RxEndTime { get; set; } /// Receive start time of a contact (ISO 8601 UTC standard). diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.json.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.json.cs index a79e4e1dbc4c..4ea486ba7f73 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.json.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/ContactsProperties.json.cs @@ -131,11 +131,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode ToJson(M } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeCreate)) { - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonString(this._reservationStartTime.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "reservationStartTime" ,container.Add ); + AddIf( null != this._reservationStartTime ? (Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonString(this._reservationStartTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "reservationStartTime" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeCreate)) { - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonString(this._reservationEndTime.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "reservationEndTime" ,container.Add ); + AddIf( null != this._reservationEndTime ? (Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonString(this._reservationEndTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "reservationEndTime" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeRead)) { diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/ErrorResponse.cs index 0a6a309f6b2a..03d49c2fc0e4 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/Operation.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/Operation.cs index 53fa326ec629..590275de81dc 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/Operation.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/OperationResult.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/OperationResult.cs index 850d956418dc..5a3ae7bbbeaf 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/OperationResult.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/OperationResult.cs @@ -43,7 +43,7 @@ public partial class OperationResult : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultErrorPropertiesInternal)Error).Message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultErrorPropertiesInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultErrorPropertiesInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultErrorPropertiesInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultErrorPropertiesInternal)Error).Code = value ?? null; } /// Internal Acessors for EndTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } @@ -55,7 +55,7 @@ public partial class OperationResult : string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultErrorPropertiesInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultErrorPropertiesInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultErrorPropertiesInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultErrorPropertiesInternal)Error).Message = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOperationResultInternal.Name { get => this._name; set { {_name = value;} } } diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/ProxyResource.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/ProxyResource.cs index 85ae5696d14c..693b00b8ea25 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/Resource.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/Resource.cs index d6cd7aff34f8..6a7dbfd69bf2 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/Resource.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } @@ -54,27 +72,27 @@ public partial class Resource : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/Spacecraft.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/Spacecraft.cs index 9c7bc961ccfd..2b8430643dce 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/Spacecraft.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/Spacecraft.cs @@ -28,30 +28,48 @@ public partial class Spacecraft : /// Immutable list of Spacecraft links. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public System.Collections.Generic.List Link { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftsPropertiesInternal)Property).Link; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftsPropertiesInternal)Property).Link = value ; } + public System.Collections.Generic.List Link { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftsPropertiesInternal)Property).Link; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftsPropertiesInternal)Property).Link = value ?? null /* arrayOf */; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.FormatTable(Index = 1)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftsProperties Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.SpacecraftsProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftsPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftsPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftsPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftsPropertiesInternal)Property).ProvisioningState = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] @@ -86,37 +104,37 @@ public partial class Spacecraft : /// [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Orbital.DoNotFormat] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] @@ -170,7 +188,7 @@ public partial interface ISpacecraft : { /// Immutable list of Spacecraft links. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.PowerShell.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.PowerShell.cs index d31c0b182a51..c5e21ce23455 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.PowerShell.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.PowerShell.cs @@ -117,11 +117,11 @@ internal SpacecraftLink(global::System.Collections.IDictionary content) } if (content.Contains("CenterFrequencyMHz")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).CenterFrequencyMHz = (float) content.GetValueForProperty("CenterFrequencyMHz",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).CenterFrequencyMHz, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).CenterFrequencyMHz = (float?) content.GetValueForProperty("CenterFrequencyMHz",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).CenterFrequencyMHz, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("BandwidthMHz")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).BandwidthMHz = (float) content.GetValueForProperty("BandwidthMHz",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).BandwidthMHz, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).BandwidthMHz = (float?) content.GetValueForProperty("BandwidthMHz",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).BandwidthMHz, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("Direction")) { @@ -158,11 +158,11 @@ internal SpacecraftLink(global::System.Management.Automation.PSObject content) } if (content.Contains("CenterFrequencyMHz")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).CenterFrequencyMHz = (float) content.GetValueForProperty("CenterFrequencyMHz",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).CenterFrequencyMHz, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).CenterFrequencyMHz = (float?) content.GetValueForProperty("CenterFrequencyMHz",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).CenterFrequencyMHz, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("BandwidthMHz")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).BandwidthMHz = (float) content.GetValueForProperty("BandwidthMHz",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).BandwidthMHz, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).BandwidthMHz = (float?) content.GetValueForProperty("BandwidthMHz",((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraftLinkInternal)this).BandwidthMHz, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); } if (content.Contains("Direction")) { diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.cs index 37791d5b9dc6..c109da27e40a 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.cs @@ -23,18 +23,18 @@ public partial class SpacecraftLink : public System.Collections.Generic.List Authorization { get => this._authorization; } /// Backing field for property. - private float _bandwidthMHz; + private float? _bandwidthMHz; /// Bandwidth in MHz. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Owned)] - public float BandwidthMHz { get => this._bandwidthMHz; set => this._bandwidthMHz = value; } + public float? BandwidthMHz { get => this._bandwidthMHz; set => this._bandwidthMHz = value; } /// Backing field for property. - private float _centerFrequencyMHz; + private float? _centerFrequencyMHz; /// Center Frequency in MHz. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Owned)] - public float CenterFrequencyMHz { get => this._centerFrequencyMHz; set => this._centerFrequencyMHz = value; } + public float? CenterFrequencyMHz { get => this._centerFrequencyMHz; set => this._centerFrequencyMHz = value; } /// Backing field for property. private string _direction; @@ -83,7 +83,7 @@ public partial interface ISpacecraftLink : System.Collections.Generic.List Authorization { get; } /// Bandwidth in MHz. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -91,10 +91,10 @@ public partial interface ISpacecraftLink : Description = @"Bandwidth in MHz.", SerializedName = @"bandwidthMHz", PossibleTypes = new [] { typeof(float) })] - float BandwidthMHz { get; set; } + float? BandwidthMHz { get; set; } /// Center Frequency in MHz. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -102,10 +102,10 @@ public partial interface ISpacecraftLink : Description = @"Center Frequency in MHz.", SerializedName = @"centerFrequencyMHz", PossibleTypes = new [] { typeof(float) })] - float CenterFrequencyMHz { get; set; } + float? CenterFrequencyMHz { get; set; } /// Direction (Uplink or Downlink). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -117,7 +117,7 @@ public partial interface ISpacecraftLink : string Direction { get; set; } /// Link name. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -128,7 +128,7 @@ public partial interface ISpacecraftLink : string Name { get; set; } /// Polarization. e.g. (RHCP, LHCP). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, @@ -147,9 +147,9 @@ internal partial interface ISpacecraftLinkInternal /// Authorized Ground Stations System.Collections.Generic.List Authorization { get; set; } /// Bandwidth in MHz. - float BandwidthMHz { get; set; } + float? BandwidthMHz { get; set; } /// Center Frequency in MHz. - float CenterFrequencyMHz { get; set; } + float? CenterFrequencyMHz { get; set; } /// Direction (Uplink or Downlink). [global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.PSArgumentCompleterAttribute("Uplink", "Downlink")] string Direction { get; set; } diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.json.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.json.cs index 6a615015b5b1..0c93fef6321d 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.json.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftLink.json.cs @@ -80,8 +80,8 @@ internal SpacecraftLink(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json. return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_centerFrequencyMHz = If( json?.PropertyT("centerFrequencyMHz"), out var __jsonCenterFrequencyMHz) ? (float)__jsonCenterFrequencyMHz : _centerFrequencyMHz;} - {_bandwidthMHz = If( json?.PropertyT("bandwidthMHz"), out var __jsonBandwidthMHz) ? (float)__jsonBandwidthMHz : _bandwidthMHz;} + {_centerFrequencyMHz = If( json?.PropertyT("centerFrequencyMHz"), out var __jsonCenterFrequencyMHz) ? (float?)__jsonCenterFrequencyMHz : _centerFrequencyMHz;} + {_bandwidthMHz = If( json?.PropertyT("bandwidthMHz"), out var __jsonBandwidthMHz) ? (float?)__jsonBandwidthMHz : _bandwidthMHz;} {_direction = If( json?.PropertyT("direction"), out var __jsonDirection) ? (string)__jsonDirection : (string)_direction;} {_polarization = If( json?.PropertyT("polarization"), out var __jsonPolarization) ? (string)__jsonPolarization : (string)_polarization;} {_authorization = If( json?.PropertyT("authorizations"), out var __jsonAuthorizations) ? If( __jsonAuthorizations as Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IAuthorizedGroundstation) (Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.AuthorizedGroundstation.FromJson(__u) )) ))() : null : _authorization;} @@ -113,11 +113,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode ToJson(M } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeCreate)) { - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNumber(this._centerFrequencyMHz), "centerFrequencyMHz" ,container.Add ); + AddIf( null != this._centerFrequencyMHz ? (Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNumber((float)this._centerFrequencyMHz) : null, "centerFrequencyMHz" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeCreate)) { - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNumber(this._bandwidthMHz), "bandwidthMHz" ,container.Add ); + AddIf( null != this._bandwidthMHz ? (Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Json.JsonNumber((float)this._bandwidthMHz) : null, "bandwidthMHz" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.SerializationMode.IncludeCreate)) { diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftsProperties.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftsProperties.cs index a27c228bb129..e3e200d781a1 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftsProperties.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/SpacecraftsProperties.cs @@ -70,7 +70,7 @@ public partial interface ISpacecraftsProperties : { /// Immutable list of Spacecraft links. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Orbital/Orbital.Autorest/generated/api/Models/TrackedResource.cs b/generated/Orbital/Orbital.Autorest/generated/api/Models/TrackedResource.cs index 33f4cd2ee942..dfe998e8a715 100644 --- a/generated/Orbital/Orbital.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Orbital/Orbital.Autorest/generated/api/Models/TrackedResource.cs @@ -34,16 +34,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Origin(Microsoft.Azure.PowerShell.Cmdlets.Orbital.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_List.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_List.cs index ad3f6307afa3..087299b2e272 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_List.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_List.cs @@ -43,21 +43,12 @@ public partial class GetAzOrbitalAvailableSpacecraftContact_List : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; /// Link to retrieve next page. private string _nextLink; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -270,11 +261,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.GetAzOrbitalAvailableS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -595,29 +581,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result.Value, true); _nextLink = result.NextLink; if (_isFirst) { diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListExpanded.cs index 7e60a4e71e6f..a89d1a123831 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListExpanded.cs @@ -43,9 +43,6 @@ public partial class GetAzOrbitalAvailableSpacecraftContact_ListExpanded : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; @@ -55,12 +52,6 @@ public partial class GetAzOrbitalAvailableSpacecraftContact_ListExpanded : globa /// Parameters that define the contact resource. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactParameters _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ContactParameters(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -303,11 +294,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.GetAzOrbitalAvailableS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,29 +614,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result.Value, true); _nextLink = result.NextLink; if (_isFirst) { diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListViaJsonFilePath.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListViaJsonFilePath.cs index e265133a054f..03e3b5bc3289 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListViaJsonFilePath.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListViaJsonFilePath.cs @@ -44,9 +44,6 @@ public partial class GetAzOrbitalAvailableSpacecraftContact_ListViaJsonFilePath /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; @@ -55,12 +52,6 @@ public partial class GetAzOrbitalAvailableSpacecraftContact_ListViaJsonFilePath /// Link to retrieve next page. private string _nextLink; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -274,11 +265,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.GetAzOrbitalAvailableS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,29 +585,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result.Value, true); _nextLink = result.NextLink; if (_isFirst) { diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListViaJsonString.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListViaJsonString.cs index fcfbf44dce8a..7cf5e1098f27 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListViaJsonString.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/GetAzOrbitalAvailableSpacecraftContact_ListViaJsonString.cs @@ -44,21 +44,12 @@ public partial class GetAzOrbitalAvailableSpacecraftContact_ListViaJsonString : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; /// Link to retrieve next page. private string _nextLink; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -272,11 +263,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.GetAzOrbitalAvailableS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -597,29 +583,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink - if (null != result.Value) - { - if (0 == _responseSize && 1 == result.Value.Count) - { - _firstResponse = result.Value[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result.Value ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result.Value, true); _nextLink = result.NextLink; if (_isFirst) { diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateExpanded.cs index e3eafe891450..c8a089e84c86 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateExpanded.cs @@ -40,20 +40,11 @@ public partial class NewAzOrbitalContactProfile_CreateExpanded : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Customer creates a Contact Profile Resource, which will contain all of the configurations required for scheduling a contact. /// private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfile _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ContactProfile(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -371,11 +362,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalContactPro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -691,24 +677,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfile var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateViaJsonFilePath.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateViaJsonFilePath.cs index 647c7ac2582a..af616b700299 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateViaJsonFilePath.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzOrbitalContactProfile_CreateViaJsonFilePath : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalContactPro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfile var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateViaJsonString.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateViaJsonString.cs index c52ccce0cc41..d0ace1d80341 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateViaJsonString.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalContactProfile_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzOrbitalContactProfile_CreateViaJsonString : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalContactPro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfile var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateExpanded.cs index 30ce563dd820..50fd983afa0d 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzOrbitalSpacecraftContact_CreateExpanded : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Customer creates a contact resource for a spacecraft resource. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.Contact(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -179,7 +170,7 @@ public partial class NewAzOrbitalSpacecraftContact_CreateExpanded : global::Syst Description = @"Reservation end time of a contact (ISO 8601 UTC standard).", SerializedName = @"reservationEndTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] - public global::System.DateTime ReservationEndTime { get => _parametersBody.ReservationEndTime; set => _parametersBody.ReservationEndTime = value; } + public global::System.DateTime ReservationEndTime { get => _parametersBody.ReservationEndTime ?? default(global::System.DateTime); set => _parametersBody.ReservationEndTime = value; } /// Reservation start time of a contact (ISO 8601 UTC standard). [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Reservation start time of a contact (ISO 8601 UTC standard).")] @@ -190,7 +181,7 @@ public partial class NewAzOrbitalSpacecraftContact_CreateExpanded : global::Syst Description = @"Reservation start time of a contact (ISO 8601 UTC standard).", SerializedName = @"reservationStartTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] - public global::System.DateTime ReservationStartTime { get => _parametersBody.ReservationStartTime; set => _parametersBody.ReservationStartTime = value; } + public global::System.DateTime ReservationStartTime { get => _parametersBody.ReservationStartTime ?? default(global::System.DateTime); set => _parametersBody.ReservationStartTime = value; } /// Backing field for property. private string _resourceGroupName; @@ -309,11 +300,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalSpacecraft /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -629,24 +615,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaIdentitySpacecraftExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaIdentitySpacecraftExpanded.cs index 1f67b55638c9..edf45adfb388 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaIdentitySpacecraftExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaIdentitySpacecraftExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzOrbitalSpacecraftContact_CreateViaIdentitySpacecraftEx /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Customer creates a contact resource for a spacecraft resource. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.Contact(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -179,7 +170,7 @@ public partial class NewAzOrbitalSpacecraftContact_CreateViaIdentitySpacecraftEx Description = @"Reservation end time of a contact (ISO 8601 UTC standard).", SerializedName = @"reservationEndTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] - public global::System.DateTime ReservationEndTime { get => _parametersBody.ReservationEndTime; set => _parametersBody.ReservationEndTime = value; } + public global::System.DateTime ReservationEndTime { get => _parametersBody.ReservationEndTime ?? default(global::System.DateTime); set => _parametersBody.ReservationEndTime = value; } /// Reservation start time of a contact (ISO 8601 UTC standard). [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Reservation start time of a contact (ISO 8601 UTC standard).")] @@ -190,7 +181,7 @@ public partial class NewAzOrbitalSpacecraftContact_CreateViaIdentitySpacecraftEx Description = @"Reservation start time of a contact (ISO 8601 UTC standard).", SerializedName = @"reservationStartTime", PossibleTypes = new [] { typeof(global::System.DateTime) })] - public global::System.DateTime ReservationStartTime { get => _parametersBody.ReservationStartTime; set => _parametersBody.ReservationStartTime = value; } + public global::System.DateTime ReservationStartTime { get => _parametersBody.ReservationStartTime ?? default(global::System.DateTime); set => _parametersBody.ReservationStartTime = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IOrbitalIdentity _spacecraftInputObject; @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalSpacecraft /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -611,24 +597,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaJsonFilePath.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaJsonFilePath.cs index 895872065bf9..4979e85d70ce 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaJsonFilePath.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzOrbitalSpacecraftContact_CreateViaJsonFilePath : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalSpacecraft /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaJsonString.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaJsonString.cs index 006f5f76cc37..c738067e2bd8 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaJsonString.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraftContact_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzOrbitalSpacecraftContact_CreateViaJsonString : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalSpacecraft /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateExpanded.cs index e24c47d59705..97cc02f4a16d 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzOrbitalSpacecraft_CreateExpanded : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Customer creates a spacecraft resource to schedule a contact. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraft _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.Spacecraft(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -329,11 +320,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalSpacecraft /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -649,24 +635,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraft var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateViaJsonFilePath.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateViaJsonFilePath.cs index 466c5c53e212..df60bb3dba6c 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateViaJsonFilePath.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzOrbitalSpacecraft_CreateViaJsonFilePath : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalSpacecraft /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraft var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateViaJsonString.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateViaJsonString.cs index 0273bcc9d37f..25621b56ef17 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateViaJsonString.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/NewAzOrbitalSpacecraft_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzOrbitalSpacecraft_CreateViaJsonString : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.NewAzOrbitalSpacecraft /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraft var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalContactProfile_Delete.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalContactProfile_Delete.cs index 17303a064dcd..9e094a87a75f 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalContactProfile_Delete.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalContactProfile_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzOrbitalContactProfile_Delete : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.RemoveAzOrbitalContact /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalContactProfile_DeleteViaIdentity.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalContactProfile_DeleteViaIdentity.cs index e3326162738c..bbb427b0e669 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalContactProfile_DeleteViaIdentity.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalContactProfile_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzOrbitalContactProfile_DeleteViaIdentity : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.RemoveAzOrbitalContact /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_Delete.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_Delete.cs index 96f2b9d3d050..8a6a8c272993 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_Delete.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzOrbitalSpacecraftContact_Delete : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.RemoveAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -592,7 +578,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -616,7 +602,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_DeleteViaIdentity.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_DeleteViaIdentity.cs index 331258aa77ff..5ad52bc123cf 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_DeleteViaIdentity.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzOrbitalSpacecraftContact_DeleteViaIdentity : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.RemoveAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_DeleteViaIdentitySpacecraft.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_DeleteViaIdentitySpacecraft.cs index 3f2ae28e3b99..607fc3109b9a 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_DeleteViaIdentitySpacecraft.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraftContact_DeleteViaIdentitySpacecraft.cs @@ -40,15 +40,6 @@ public partial class RemoveAzOrbitalSpacecraftContact_DeleteViaIdentitySpacecraf /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.RemoveAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -573,7 +559,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -597,7 +583,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraft_Delete.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraft_Delete.cs index 7d9869421b01..2dc12cb904d6 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraft_Delete.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraft_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzOrbitalSpacecraft_Delete : global::System.Managemen /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.RemoveAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraft_DeleteViaIdentity.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraft_DeleteViaIdentity.cs index a57370c55b37..e67f35039c1a 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraft_DeleteViaIdentity.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/RemoveAzOrbitalSpacecraft_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzOrbitalSpacecraft_DeleteViaIdentity : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.RemoveAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateExpanded.cs index 64b85bac51f7..114b00251c1b 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzOrbitalContactProfile_UpdateExpanded : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Tags object for patch operations. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.TagsObject(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalContact /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzOrbitalContactProfile_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfile var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaIdentityExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaIdentityExpanded.cs index 032d1092077b..358ed02db880 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaIdentityExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzOrbitalContactProfile_UpdateViaIdentityExpanded : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Tags object for patch operations. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.TagsObject(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalContact /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,24 +545,7 @@ public UpdateAzOrbitalContactProfile_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfile var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaJsonFilePath.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaJsonFilePath.cs index b1b24014a7ab..5305e90f249d 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaJsonFilePath.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzOrbitalContactProfile_UpdateViaJsonFilePath : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalContact /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzOrbitalContactProfile_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfile var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaJsonString.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaJsonString.cs index 55dead305fd5..d5f7ecf1d365 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaJsonString.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalContactProfile_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzOrbitalContactProfile_UpdateViaJsonString : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalContact /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ public UpdateAzOrbitalContactProfile_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContactProfile var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateExpanded.cs index 125c8f09e974..e4d83c55da73 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzOrbitalSpacecraftContact_UpdateExpanded : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Customer creates a contact resource for a spacecraft resource. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.Contact(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ private void Update_parametersBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateViaIdentityExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateViaIdentityExpanded.cs index 3d9220859983..fa44d615b6d7 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateViaIdentityExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzOrbitalSpacecraftContact_UpdateViaIdentityExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Customer creates a contact resource for a spacecraft resource. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.Contact(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -576,24 +562,7 @@ private void Update_parametersBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateViaIdentitySpacecraftExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateViaIdentitySpacecraftExpanded.cs index 89beae76b889..a94868c172ae 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateViaIdentitySpacecraftExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraftContact_UpdateViaIdentitySpacecraftExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzOrbitalSpacecraftContact_UpdateViaIdentitySpacecraf /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Customer creates a contact resource for a spacecraft resource. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.Contact(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ private void Update_parametersBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.IContact var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateExpanded.cs index 13d4052bad79..4802eded7af7 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzOrbitalSpacecraft_UpdateExpanded : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Tags object for patch operations. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.TagsObject(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzOrbitalSpacecraft_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraft var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaIdentityExpanded.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaIdentityExpanded.cs index 13d604d3ce31..807865543543 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaIdentityExpanded.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzOrbitalSpacecraft_UpdateViaIdentityExpanded : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Tags object for patch operations. private Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.TagsObject(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -559,24 +545,7 @@ public UpdateAzOrbitalSpacecraft_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraft var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaJsonFilePath.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaJsonFilePath.cs index e2896c1352e5..4b514e6af4df 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaJsonFilePath.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzOrbitalSpacecraft_UpdateViaJsonFilePath : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzOrbitalSpacecraft_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraft var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaJsonString.cs b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaJsonString.cs index 48d27e023e2a..6935219718bb 100644 --- a/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaJsonString.cs +++ b/generated/Orbital/Orbital.Autorest/generated/cmdlets/UpdateAzOrbitalSpacecraft_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzOrbitalSpacecraft_UpdateViaJsonString : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Orbital.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Orbital.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Orbital.Cmdlets.UpdateAzOrbitalSpacecr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Orbital.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ public UpdateAzOrbitalSpacecraft_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Orbital.Models.ISpacecraft var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 36d8c4a126bf..c9a5d97a55eb 100644 --- a/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index f15243afa7f8..8ad42931600a 100644 --- a/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index c6b12ffc613c..57658414f40f 100644 --- a/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Orbital/Orbital.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Orbital/Orbital.Autorest/generated/runtime/Context.cs b/generated/Orbital/Orbital.Autorest/generated/runtime/Context.cs index 415845785095..5fa5ad6a18a7 100644 --- a/generated/Orbital/Orbital.Autorest/generated/runtime/Context.cs +++ b/generated/Orbital/Orbital.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Orbital/Orbital.Autorest/generated/runtime/MessageAttribute.cs b/generated/Orbital/Orbital.Autorest/generated/runtime/MessageAttribute.cs index 311a76a92bba..475329011747 100644 --- a/generated/Orbital/Orbital.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Orbital/Orbital.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Orbital.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Orbital" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Orbital/Orbital.Autorest/generated/runtime/Properties/Resources.resx b/generated/Orbital/Orbital.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Orbital/Orbital.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Orbital/Orbital.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeering.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeering.ps1 index c8b445c597df..5dd6d5163052 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeering.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeering.ps1 @@ -142,8 +142,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringAsn.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringAsn.ps1 index 1dd3103e5ce6..481df9b03b04 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringAsn.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringAsn.ps1 @@ -134,8 +134,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringCdnPrefix.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringCdnPrefix.ps1 index cd519ff1812e..61c1d7f41d9a 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringCdnPrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringCdnPrefix.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringConnectionMonitorTest.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringConnectionMonitorTest.ps1 index f2fb1b6d9e75..5f4e808c77c1 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringConnectionMonitorTest.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringConnectionMonitorTest.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringLegacy.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringLegacy.ps1 index 925868c63dc1..20be3c765998 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringLegacy.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringLegacy.ps1 @@ -126,8 +126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringLocation.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringLocation.ps1 index 31a3ddeab48c..0fcee09a8984 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringLocation.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringLocation.ps1 @@ -114,8 +114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringReceivedRoute.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringReceivedRoute.ps1 index fc4f3bb3fad5..dc34bd749ffd 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringReceivedRoute.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringReceivedRoute.ps1 @@ -144,8 +144,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRegisteredAsn.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRegisteredAsn.ps1 index 95a638315f55..a1bdc2a87d75 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRegisteredAsn.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRegisteredAsn.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRegisteredPrefix.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRegisteredPrefix.ps1 index 0361966f9a62..949b4ebe0f01 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRegisteredPrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRegisteredPrefix.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRpUnbilledPrefix.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRpUnbilledPrefix.ps1 index c1e8e67cd67e..1eff0aadba05 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRpUnbilledPrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringRpUnbilledPrefix.ps1 @@ -118,8 +118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringService.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringService.ps1 index dcd42630c1f1..c7f8dfd5141f 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringService.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringService.ps1 @@ -144,8 +144,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceCountry.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceCountry.ps1 index 006ca6bdb0ee..a42e62a648c8 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceCountry.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceCountry.ps1 @@ -100,8 +100,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceLocation.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceLocation.ps1 index bfec8d91b7ad..fc88aa55c28b 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceLocation.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceLocation.ps1 @@ -108,8 +108,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServicePrefix.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServicePrefix.ps1 index 7e8156b3efce..bc9055a96445 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServicePrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServicePrefix.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceProvider.ps1 b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceProvider.ps1 index 920e07816f2e..5043b8267c8a 100644 --- a/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceProvider.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Get-AzPeeringServiceProvider.ps1 @@ -100,8 +100,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Initialize-AzPeeringServiceConnectionMonitor.ps1 b/generated/Peering/Peering.Autorest/exports/Initialize-AzPeeringServiceConnectionMonitor.ps1 index d542081658d8..40f5f58d0429 100644 --- a/generated/Peering/Peering.Autorest/exports/Initialize-AzPeeringServiceConnectionMonitor.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Initialize-AzPeeringServiceConnectionMonitor.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/New-AzPeering.ps1 b/generated/Peering/Peering.Autorest/exports/New-AzPeering.ps1 index ab0e82af12ac..5284a1be2f83 100644 --- a/generated/Peering/Peering.Autorest/exports/New-AzPeering.ps1 +++ b/generated/Peering/Peering.Autorest/exports/New-AzPeering.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new peering or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering or create an existing peering with the specified name under the given subscription and resource group. .Description -create a new peering or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering or create an existing peering with the specified name under the given subscription and resource group. .Example $peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest" $directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 @@ -215,8 +215,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/New-AzPeeringAsn.ps1 b/generated/Peering/Peering.Autorest/exports/New-AzPeeringAsn.ps1 index 0a6c1c9611b9..b0e477025b1e 100644 --- a/generated/Peering/Peering.Autorest/exports/New-AzPeeringAsn.ps1 +++ b/generated/Peering/Peering.Autorest/exports/New-AzPeeringAsn.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. +Create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. .Description -create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. +Create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. .Example $contactDetail = New-AzPeeringContactDetailObject -Email "abc@xyz.com" -Phone 1234567890 -Role "Noc" $PeerContactList = ,$contactDetail @@ -137,8 +137,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/New-AzPeeringConnectionMonitorTest.ps1 b/generated/Peering/Peering.Autorest/exports/New-AzPeeringConnectionMonitorTest.ps1 index cd8687339e3e..12da54a592f8 100644 --- a/generated/Peering/Peering.Autorest/exports/New-AzPeeringConnectionMonitorTest.ps1 +++ b/generated/Peering/Peering.Autorest/exports/New-AzPeeringConnectionMonitorTest.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a connection monitor test with the specified name under the given subscription, resource group and peering service. +Create a connection monitor test with the specified name under the given subscription, resource group and peering service. .Description -create a connection monitor test with the specified name under the given subscription, resource group and peering service. +Create a connection monitor test with the specified name under the given subscription, resource group and peering service. .Example New-AzPeeringConnectionMonitorTest -Name TestName -PeeringServiceName DRTest -ResourceGroupName DemoRG @@ -143,8 +143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/New-AzPeeringRegisteredAsn.ps1 b/generated/Peering/Peering.Autorest/exports/New-AzPeeringRegisteredAsn.ps1 index 5812781493e7..397b29186094 100644 --- a/generated/Peering/Peering.Autorest/exports/New-AzPeeringRegisteredAsn.ps1 +++ b/generated/Peering/Peering.Autorest/exports/New-AzPeeringRegisteredAsn.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new registered ASN with the specified name under the given subscription, resource group and peering. +Create a new registered ASN with the specified name under the given subscription, resource group and peering. .Description -create a new registered ASN with the specified name under the given subscription, resource group and peering. +Create a new registered ASN with the specified name under the given subscription, resource group and peering. .Example New-AzPeeringRegisteredAsn -Name TestAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Asn 65001 @@ -125,8 +125,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/New-AzPeeringRegisteredPrefix.ps1 b/generated/Peering/Peering.Autorest/exports/New-AzPeeringRegisteredPrefix.ps1 index 556e5ab42448..fe2f239a5080 100644 --- a/generated/Peering/Peering.Autorest/exports/New-AzPeeringRegisteredPrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/New-AzPeeringRegisteredPrefix.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new registered prefix with the specified name under the given subscription, resource group and peering. +Create a new registered prefix with the specified name under the given subscription, resource group and peering. .Description -create a new registered prefix with the specified name under the given subscription, resource group and peering. +Create a new registered prefix with the specified name under the given subscription, resource group and peering. .Example New-AzPeeringRegisteredPrefix -Name accessibilityTesting6 -PeeringName DemoPeering -ResourceGroupName DemoRG -Prefix 240.0.5.0/24 @@ -125,8 +125,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/New-AzPeeringService.ps1 b/generated/Peering/Peering.Autorest/exports/New-AzPeeringService.ps1 index 30fb4e03a734..3c07e6e242bb 100644 --- a/generated/Peering/Peering.Autorest/exports/New-AzPeeringService.ps1 +++ b/generated/Peering/Peering.Autorest/exports/New-AzPeeringService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new peering service or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering service or create an existing peering with the specified name under the given subscription and resource group. .Description -create a new peering service or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering service or create an existing peering with the specified name under the given subscription and resource group. .Example New-AzPeeringService -Name TestPeeringService -ResourceGroupName DemoRG -Location "East US 2" -PeeringServiceLocation Georgia -PeeringServiceProvider MicrosoftEdge -ProviderPrimaryPeeringLocation Atlanta @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/New-AzPeeringServicePrefix.ps1 b/generated/Peering/Peering.Autorest/exports/New-AzPeeringServicePrefix.ps1 index c27ef996e8a2..52e2c10fd236 100644 --- a/generated/Peering/Peering.Autorest/exports/New-AzPeeringServicePrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/New-AzPeeringServicePrefix.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new prefix with the specified name under the given subscription, resource group and peering service. +Create a new prefix with the specified name under the given subscription, resource group and peering service. .Description -create a new prefix with the specified name under the given subscription, resource group and peering service. +Create a new prefix with the specified name under the given subscription, resource group and peering service. .Example New-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG -PeeringServicePrefixKey 6a7f0d42-e49c-4eea-a930-280610671c3f -Prefix 91.194.255.0/24 @@ -131,8 +131,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Peering/Peering.Autorest/exports/ProxyCmdletDefinitions.ps1 index 2a4b8eca3afe..254902560706 100644 --- a/generated/Peering/Peering.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Peering/Peering.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -134,8 +134,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -312,8 +311,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -549,8 +547,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -748,8 +745,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -932,8 +928,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1146,8 +1141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1383,8 +1377,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1623,8 +1616,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1814,8 +1806,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1984,8 +1975,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2162,8 +2152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2405,8 +2394,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2578,8 +2566,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2792,8 +2779,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3007,8 +2993,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3186,8 +3171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3272,9 +3256,9 @@ end { <# .Synopsis -create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. +Create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. .Description -create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. +Create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. .Example $contactDetail = New-AzPeeringContactDetailObject -Email "abc@xyz.com" -Phone 1234567890 -Role "Noc" $PeerContactList = ,$contactDetail @@ -3393,8 +3377,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3479,9 +3462,9 @@ end { <# .Synopsis -create a connection monitor test with the specified name under the given subscription, resource group and peering service. +Create a connection monitor test with the specified name under the given subscription, resource group and peering service. .Description -create a connection monitor test with the specified name under the given subscription, resource group and peering service. +Create a connection monitor test with the specified name under the given subscription, resource group and peering service. .Example New-AzPeeringConnectionMonitorTest -Name TestName -PeeringServiceName DRTest -ResourceGroupName DemoRG @@ -3606,8 +3589,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3692,9 +3674,9 @@ end { <# .Synopsis -create a new registered ASN with the specified name under the given subscription, resource group and peering. +Create a new registered ASN with the specified name under the given subscription, resource group and peering. .Description -create a new registered ASN with the specified name under the given subscription, resource group and peering. +Create a new registered ASN with the specified name under the given subscription, resource group and peering. .Example New-AzPeeringRegisteredAsn -Name TestAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Asn 65001 @@ -3801,8 +3783,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3887,9 +3868,9 @@ end { <# .Synopsis -create a new registered prefix with the specified name under the given subscription, resource group and peering. +Create a new registered prefix with the specified name under the given subscription, resource group and peering. .Description -create a new registered prefix with the specified name under the given subscription, resource group and peering. +Create a new registered prefix with the specified name under the given subscription, resource group and peering. .Example New-AzPeeringRegisteredPrefix -Name accessibilityTesting6 -PeeringName DemoPeering -ResourceGroupName DemoRG -Prefix 240.0.5.0/24 @@ -3996,8 +3977,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4082,9 +4062,9 @@ end { <# .Synopsis -create a new prefix with the specified name under the given subscription, resource group and peering service. +Create a new prefix with the specified name under the given subscription, resource group and peering service. .Description -create a new prefix with the specified name under the given subscription, resource group and peering service. +Create a new prefix with the specified name under the given subscription, resource group and peering service. .Example New-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG -PeeringServicePrefixKey 6a7f0d42-e49c-4eea-a930-280610671c3f -Prefix 91.194.255.0/24 @@ -4197,8 +4177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4283,9 +4262,9 @@ end { <# .Synopsis -create a new peering service or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering service or create an existing peering with the specified name under the given subscription and resource group. .Description -create a new peering service or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering service or create an existing peering with the specified name under the given subscription and resource group. .Example New-AzPeeringService -Name TestPeeringService -ResourceGroupName DemoRG -Location "East US 2" -PeeringServiceLocation Georgia -PeeringServiceProvider MicrosoftEdge -ProviderPrimaryPeeringLocation Atlanta @@ -4424,8 +4403,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4510,9 +4488,9 @@ end { <# .Synopsis -create a new peering or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering or create an existing peering with the specified name under the given subscription and resource group. .Description -create a new peering or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering or create an existing peering with the specified name under the given subscription and resource group. .Example $peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest" $directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 @@ -4709,8 +4687,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4916,8 +4893,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5155,8 +5131,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5395,8 +5370,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5635,8 +5609,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5875,8 +5848,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6090,8 +6062,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6304,8 +6275,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6501,8 +6471,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6733,8 +6702,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6946,8 +6914,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7035,9 +7002,9 @@ end { <# .Synopsis -update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. +Update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. .Description -update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. +Update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. .Example $contactDetail = New-AzPeeringContactDetailObject -Email "abc@xyz.com" -Phone 1234567890 -Role "Noc" $PeerContactList = ,$contactDetail @@ -7176,8 +7143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7263,9 +7229,9 @@ end { <# .Synopsis -update a connection monitor test with the specified name under the given subscription, resource group and peering service. +Update a connection monitor test with the specified name under the given subscription, resource group and peering service. .Description -update a connection monitor test with the specified name under the given subscription, resource group and peering service. +Update a connection monitor test with the specified name under the given subscription, resource group and peering service. .Example Update-AzPeeringConnectionMonitorTest -Name TestName -PeeringServiceName DRTest -ResourceGroupName DemoRG -Destination Test @@ -7433,8 +7399,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7521,9 +7486,9 @@ end { <# .Synopsis -update a new registered ASN with the specified name under the given subscription, resource group and peering. +Update a new registered ASN with the specified name under the given subscription, resource group and peering. .Description -update a new registered ASN with the specified name under the given subscription, resource group and peering. +Update a new registered ASN with the specified name under the given subscription, resource group and peering. .Example Update-AzPeeringRegisteredAsn -Name TestAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Asn 65001 @@ -7673,8 +7638,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7761,9 +7725,9 @@ end { <# .Synopsis -update a new registered prefix with the specified name under the given subscription, resource group and peering. +Update a new registered prefix with the specified name under the given subscription, resource group and peering. .Description -update a new registered prefix with the specified name under the given subscription, resource group and peering. +Update a new registered prefix with the specified name under the given subscription, resource group and peering. .Example Update-AzPeeringRegisteredPrefix -Name accessibilityTesting6 -PeeringName DemoPeering -ResourceGroupName DemoRG -Prefix 240.0.5.0/24 @@ -7913,8 +7877,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8001,9 +7964,9 @@ end { <# .Synopsis -update tags for a peering service with the specified name under the given subscription and resource group. +Update tags for a peering service with the specified name under the given subscription and resource group. .Description -update tags for a peering service with the specified name under the given subscription and resource group. +Update tags for a peering service with the specified name under the given subscription and resource group. .Example $tags=@{hello='world'} Update-AzPeeringService -Name DRTestInterCloud -ResourceGroupName DemoRG -Tag $tags @@ -8130,8 +8093,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8217,9 +8179,9 @@ end { <# .Synopsis -update tags for a peering with the specified name under the given subscription and resource group. +Update tags for a peering with the specified name under the given subscription and resource group. .Description -update tags for a peering with the specified name under the given subscription and resource group. +Update tags for a peering with the specified name under the given subscription and resource group. .Example $tags=@{hello='world'} Update-AzPeering -Name DemoPeering -ResourceGroupName DemoRG -Tag $tags @@ -8346,8 +8308,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Remove-AzPeering.ps1 b/generated/Peering/Peering.Autorest/exports/Remove-AzPeering.ps1 index 43bb855adbbc..b546d00a2123 100644 --- a/generated/Peering/Peering.Autorest/exports/Remove-AzPeering.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Remove-AzPeering.ps1 @@ -143,8 +143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringAsn.ps1 b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringAsn.ps1 index f898a66aa8b0..b814b953e73f 100644 --- a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringAsn.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringAsn.ps1 @@ -137,8 +137,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringConnectionMonitorTest.ps1 b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringConnectionMonitorTest.ps1 index e3716a37d62a..27d8514dc8ef 100644 --- a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringConnectionMonitorTest.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringConnectionMonitorTest.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringRegisteredAsn.ps1 b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringRegisteredAsn.ps1 index d88d68eade43..f7b7bb5e0347 100644 --- a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringRegisteredAsn.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringRegisteredAsn.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringRegisteredPrefix.ps1 b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringRegisteredPrefix.ps1 index cdcde2e0566e..f0f0087424d3 100644 --- a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringRegisteredPrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringRegisteredPrefix.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringService.ps1 b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringService.ps1 index 6033a3a91fcb..b823a39ea421 100644 --- a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringService.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringService.ps1 @@ -143,8 +143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringServicePrefix.ps1 b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringServicePrefix.ps1 index 59264c3c3c76..73802c23c78a 100644 --- a/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringServicePrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Remove-AzPeeringServicePrefix.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Start-AzPeeringInvokeLookingGlass.ps1 b/generated/Peering/Peering.Autorest/exports/Start-AzPeeringInvokeLookingGlass.ps1 index 0164528d3a91..42e1f1e7e867 100644 --- a/generated/Peering/Peering.Autorest/exports/Start-AzPeeringInvokeLookingGlass.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Start-AzPeeringInvokeLookingGlass.ps1 @@ -126,8 +126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Test-AzPeeringRegisteredPrefix.ps1 b/generated/Peering/Peering.Autorest/exports/Test-AzPeeringRegisteredPrefix.ps1 index b44f23920fc9..9341359ae43f 100644 --- a/generated/Peering/Peering.Autorest/exports/Test-AzPeeringRegisteredPrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Test-AzPeeringRegisteredPrefix.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Test-AzPeeringServiceProviderAvailability.ps1 b/generated/Peering/Peering.Autorest/exports/Test-AzPeeringServiceProviderAvailability.ps1 index 288d7a952180..11caf7b5eff6 100644 --- a/generated/Peering/Peering.Autorest/exports/Test-AzPeeringServiceProviderAvailability.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Test-AzPeeringServiceProviderAvailability.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Update-AzPeering.ps1 b/generated/Peering/Peering.Autorest/exports/Update-AzPeering.ps1 index c0d377f4cd46..dfbcc28b599a 100644 --- a/generated/Peering/Peering.Autorest/exports/Update-AzPeering.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Update-AzPeering.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update tags for a peering with the specified name under the given subscription and resource group. +Update tags for a peering with the specified name under the given subscription and resource group. .Description -update tags for a peering with the specified name under the given subscription and resource group. +Update tags for a peering with the specified name under the given subscription and resource group. .Example $tags=@{hello='world'} Update-AzPeering -Name DemoPeering -ResourceGroupName DemoRG -Tag $tags @@ -145,8 +145,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringAsn.ps1 b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringAsn.ps1 index b8d28fc9119e..64de5c7b241d 100644 --- a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringAsn.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringAsn.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. +Update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. .Description -update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. +Update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. .Example $contactDetail = New-AzPeeringContactDetailObject -Email "abc@xyz.com" -Phone 1234567890 -Role "Noc" $PeerContactList = ,$contactDetail @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringConnectionMonitorTest.ps1 b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringConnectionMonitorTest.ps1 index 43b7e3f2105e..41f83af1bf83 100644 --- a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringConnectionMonitorTest.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringConnectionMonitorTest.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a connection monitor test with the specified name under the given subscription, resource group and peering service. +Update a connection monitor test with the specified name under the given subscription, resource group and peering service. .Description -update a connection monitor test with the specified name under the given subscription, resource group and peering service. +Update a connection monitor test with the specified name under the given subscription, resource group and peering service. .Example Update-AzPeeringConnectionMonitorTest -Name TestName -PeeringServiceName DRTest -ResourceGroupName DemoRG -Destination Test @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringRegisteredAsn.ps1 b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringRegisteredAsn.ps1 index 6fd4db7e6dfe..840e43796ba2 100644 --- a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringRegisteredAsn.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringRegisteredAsn.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a new registered ASN with the specified name under the given subscription, resource group and peering. +Update a new registered ASN with the specified name under the given subscription, resource group and peering. .Description -update a new registered ASN with the specified name under the given subscription, resource group and peering. +Update a new registered ASN with the specified name under the given subscription, resource group and peering. .Example Update-AzPeeringRegisteredAsn -Name TestAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Asn 65001 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringRegisteredPrefix.ps1 b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringRegisteredPrefix.ps1 index a153edd74134..6b17b7a4b500 100644 --- a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringRegisteredPrefix.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringRegisteredPrefix.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a new registered prefix with the specified name under the given subscription, resource group and peering. +Update a new registered prefix with the specified name under the given subscription, resource group and peering. .Description -update a new registered prefix with the specified name under the given subscription, resource group and peering. +Update a new registered prefix with the specified name under the given subscription, resource group and peering. .Example Update-AzPeeringRegisteredPrefix -Name accessibilityTesting6 -PeeringName DemoPeering -ResourceGroupName DemoRG -Prefix 240.0.5.0/24 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringService.ps1 b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringService.ps1 index 267477d13764..a21c6bc8aaf5 100644 --- a/generated/Peering/Peering.Autorest/exports/Update-AzPeeringService.ps1 +++ b/generated/Peering/Peering.Autorest/exports/Update-AzPeeringService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update tags for a peering service with the specified name under the given subscription and resource group. +Update tags for a peering service with the specified name under the given subscription and resource group. .Description -update tags for a peering service with the specified name under the given subscription and resource group. +Update tags for a peering service with the specified name under the given subscription and resource group. .Example $tags=@{hello='world'} Update-AzPeeringService -Name DRTestInterCloud -ResourceGroupName DemoRG -Tag $tags @@ -145,8 +145,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/CdnPeeringPrefix.cs b/generated/Peering/Peering.Autorest/generated/api/Models/CdnPeeringPrefix.cs index 58c34bd3788d..3a5643f40ffc 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/CdnPeeringPrefix.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/CdnPeeringPrefix.cs @@ -44,31 +44,31 @@ public partial class CdnPeeringPrefix : public bool? IsPrimaryRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).IsPrimaryRegion; } /// Internal Acessors for AzureRegion - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.AzureRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).AzureRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).AzureRegion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.AzureRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).AzureRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).AzureRegion = value ?? null; } /// Internal Acessors for AzureService - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.AzureService { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).AzureService; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).AzureService = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.AzureService { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).AzureService; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).AzureService = value ?? null; } /// Internal Acessors for BgpCommunity - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.BgpCommunity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).BgpCommunity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).BgpCommunity = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.BgpCommunity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).BgpCommunity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).BgpCommunity = value ?? null; } /// Internal Acessors for IsPrimaryRegion - bool? Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.IsPrimaryRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).IsPrimaryRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).IsPrimaryRegion = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.IsPrimaryRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).IsPrimaryRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).IsPrimaryRegion = value ?? default(bool); } /// Internal Acessors for Prefix - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.Prefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).Prefix; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).Prefix = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.Prefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).Prefix; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixPropertiesInternal)Property).Prefix = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ICdnPeeringPrefixInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.CdnPeeringPrefixProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/ConnectionMonitorTest.cs b/generated/Peering/Peering.Autorest/generated/api/Models/ConnectionMonitorTest.cs index 3a88ab51449f..0d0fde178356 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/ConnectionMonitorTest.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/ConnectionMonitorTest.cs @@ -35,25 +35,25 @@ public partial class ConnectionMonitorTest : public bool? IsTestSuccessful { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).IsTestSuccessful; } /// Internal Acessors for IsTestSuccessful - bool? Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestInternal.IsTestSuccessful { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).IsTestSuccessful; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).IsTestSuccessful = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestInternal.IsTestSuccessful { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).IsTestSuccessful; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).IsTestSuccessful = value ?? default(bool); } /// Internal Acessors for Path - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestInternal.Path { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).Path = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestInternal.Path { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).Path = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ConnectionMonitorTestProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IConnectionMonitorTestPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/DirectConnection.cs b/generated/Peering/Peering.Autorest/generated/api/Models/DirectConnection.cs index 2af0d755bc7f..b7d0d6f48719 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/DirectConnection.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/DirectConnection.cs @@ -96,10 +96,10 @@ public partial class DirectConnection : Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSession Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IDirectConnectionInternal.BgpSession { get => (this._bgpSession = this._bgpSession ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.BgpSession()); set { {_bgpSession = value;} } } /// Internal Acessors for BgpSessionStateV4 - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IDirectConnectionInternal.BgpSessionStateV4 { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV4; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV4 = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IDirectConnectionInternal.BgpSessionStateV4 { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV4; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV4 = value ?? null; } /// Internal Acessors for BgpSessionStateV6 - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IDirectConnectionInternal.BgpSessionStateV6 { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV6; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV6 = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IDirectConnectionInternal.BgpSessionStateV6 { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV6; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV6 = value ?? null; } /// Internal Acessors for ConnectionState string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IDirectConnectionInternal.ConnectionState { get => this._connectionState; set { {_connectionState = value;} } } diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Peering/Peering.Autorest/generated/api/Models/ErrorResponse.cs index b91f17bb6f46..39e99c211815 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/ErrorResponse.cs @@ -29,13 +29,13 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Creates an new instance. public ErrorResponse() diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/ExchangeConnection.cs b/generated/Peering/Peering.Autorest/generated/api/Models/ExchangeConnection.cs index 17c773669bae..3a6c18375808 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/ExchangeConnection.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/ExchangeConnection.cs @@ -89,10 +89,10 @@ public partial class ExchangeConnection : Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSession Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IExchangeConnectionInternal.BgpSession { get => (this._bgpSession = this._bgpSession ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.BgpSession()); set { {_bgpSession = value;} } } /// Internal Acessors for BgpSessionStateV4 - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IExchangeConnectionInternal.BgpSessionStateV4 { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV4; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV4 = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IExchangeConnectionInternal.BgpSessionStateV4 { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV4; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV4 = value ?? null; } /// Internal Acessors for BgpSessionStateV6 - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IExchangeConnectionInternal.BgpSessionStateV6 { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV6; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV6 = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IExchangeConnectionInternal.BgpSessionStateV6 { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV6; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IBgpSessionInternal)BgpSession).SessionStateV6 = value ?? null; } /// Internal Acessors for ConnectionState string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IExchangeConnectionInternal.ConnectionState { get => this._connectionState; set { {_connectionState = value;} } } diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/Operation.cs b/generated/Peering/Peering.Autorest/generated/api/Models/Operation.cs index c1e95f1b155b..59430c6ccb5b 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/Operation.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/Operation.cs @@ -47,16 +47,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfo Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.OperationDisplayInfo()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationDisplayInfoInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } @@ -68,10 +68,10 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.OperationProperties()); set { {_property = value;} } } /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal)Property).ServiceSpecification = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal)Property).ServiceSpecification = value ?? null /* model class */; } /// Internal Acessors for ServiceSpecificationMetricSpecification - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.ServiceSpecificationMetricSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal)Property).ServiceSpecificationMetricSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal)Property).ServiceSpecificationMetricSpecification = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationInternal.ServiceSpecificationMetricSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal)Property).ServiceSpecificationMetricSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal)Property).ServiceSpecificationMetricSpecification = value ?? null /* arrayOf */; } /// Backing field for property. private string _name; diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/OperationProperties.cs b/generated/Peering/Peering.Autorest/generated/api/Models/OperationProperties.cs index c1c41918205f..29b6f261f57f 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/OperationProperties.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/OperationProperties.cs @@ -17,7 +17,7 @@ public partial class OperationProperties : Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal.ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ServiceSpecification()); set { {_serviceSpecification = value;} } } /// Internal Acessors for ServiceSpecificationMetricSpecification - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal.ServiceSpecificationMetricSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IServiceSpecificationInternal)ServiceSpecification).MetricSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IServiceSpecificationInternal)ServiceSpecification).MetricSpecification = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IOperationPropertiesInternal.ServiceSpecificationMetricSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IServiceSpecificationInternal)ServiceSpecification).MetricSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IServiceSpecificationInternal)ServiceSpecification).MetricSpecification = value ?? null /* arrayOf */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IServiceSpecification _serviceSpecification; diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeerAsn.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeerAsn.cs index a8b5b9868c15..a64084a5cefe 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeerAsn.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeerAsn.cs @@ -29,22 +29,22 @@ public partial class PeerAsn : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnPropertiesInternal)Property).ErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnPropertiesInternal)Property).ErrorMessage = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeerAsnProperties()); set { {_property = value;} } } /// Internal Acessors for ValidationState - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnInternal.ValidationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnPropertiesInternal)Property).ValidationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnPropertiesInternal)Property).ValidationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnInternal.ValidationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnPropertiesInternal)Property).ValidationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeerAsnPropertiesInternal)Property).ValidationState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/Peering.cs b/generated/Peering/Peering.Autorest/generated/api/Models/Peering.cs index 4a078123a7cc..b8bea9cc61fc 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/Peering.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/Peering.cs @@ -72,46 +72,46 @@ public partial class Peering : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Direct - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirect Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.Direct { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).Direct; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).Direct = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirect Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.Direct { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).Direct; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).Direct = value ?? null /* model class */; } /// Internal Acessors for DirectPeerAsn - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.DirectPeerAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).DirectPeerAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).DirectPeerAsn = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.DirectPeerAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).DirectPeerAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).DirectPeerAsn = value ?? null /* model class */; } /// Internal Acessors for DirectUseForPeeringService - bool? Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.DirectUseForPeeringService { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).DirectUseForPeeringService; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).DirectUseForPeeringService = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.DirectUseForPeeringService { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).DirectUseForPeeringService; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).DirectUseForPeeringService = value ?? default(bool); } /// Internal Acessors for Exchange - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesExchange Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.Exchange { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).Exchange; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).Exchange = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesExchange Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.Exchange { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).Exchange; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).Exchange = value ?? null /* model class */; } /// Internal Acessors for ExchangePeerAsn - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.ExchangePeerAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).ExchangePeerAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).ExchangePeerAsn = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.ExchangePeerAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).ExchangePeerAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).ExchangePeerAsn = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSku Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringSku()); set { {_sku = value;} } } /// Internal Acessors for SkuFamily - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Family = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Family = value ?? null; } /// Internal Acessors for SkuSize - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Size = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Size = value ?? null; } /// Internal Acessors for SkuTier - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Tier = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringSkuInternal)Sku).Tier = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] @@ -286,7 +286,7 @@ public partial interface IPeering : string Kind { get; set; } /// The location of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringLocation.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringLocation.cs index 9a2428acab11..06f120ac8781 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringLocation.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringLocation.cs @@ -59,22 +59,22 @@ public partial class PeeringLocation : public string Kind { get => this._kind; set => this._kind = value; } /// Internal Acessors for Direct - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesDirect Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationInternal.Direct { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesInternal)Property).Direct; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesInternal)Property).Direct = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesDirect Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationInternal.Direct { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesInternal)Property).Direct; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesInternal)Property).Direct = value ?? null /* model class */; } /// Internal Acessors for Exchange - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesExchange Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationInternal.Exchange { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesInternal)Property).Exchange; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesInternal)Property).Exchange = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesExchange Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationInternal.Exchange { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesInternal)Property).Exchange; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationPropertiesInternal)Property).Exchange = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringLocationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringLocationProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringProperties.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringProperties.cs index a2cb77c21fd0..a23affc3fa5d 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringProperties.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringProperties.cs @@ -55,16 +55,16 @@ public partial class PeeringProperties : Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirect Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal.Direct { get => (this._direct = this._direct ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringPropertiesDirect()); set { {_direct = value;} } } /// Internal Acessors for DirectPeerAsn - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal.DirectPeerAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirectInternal)Direct).PeerAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirectInternal)Direct).PeerAsn = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal.DirectPeerAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirectInternal)Direct).PeerAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirectInternal)Direct).PeerAsn = value ?? null /* model class */; } /// Internal Acessors for DirectUseForPeeringService - bool? Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal.DirectUseForPeeringService { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirectInternal)Direct).UseForPeeringService; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirectInternal)Direct).UseForPeeringService = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal.DirectUseForPeeringService { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirectInternal)Direct).UseForPeeringService; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesDirectInternal)Direct).UseForPeeringService = value ?? default(bool); } /// Internal Acessors for Exchange Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesExchange Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal.Exchange { get => (this._exchange = this._exchange ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringPropertiesExchange()); set { {_exchange = value;} } } /// Internal Acessors for ExchangePeerAsn - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal.ExchangePeerAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesExchangeInternal)Exchange).PeerAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesExchangeInternal)Exchange).PeerAsn = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ISubResource Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal.ExchangePeerAsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesExchangeInternal)Exchange).PeerAsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesExchangeInternal)Exchange).PeerAsn = value ?? null /* model class */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringRegisteredAsn.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringRegisteredAsn.cs index 5f844ea78e06..eb1b0cc0963a 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringRegisteredAsn.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringRegisteredAsn.cs @@ -29,22 +29,22 @@ public partial class PeeringRegisteredAsn : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for PeeringServicePrefixKey - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnInternal.PeeringServicePrefixKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnPropertiesInternal)Property).PeeringServicePrefixKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnPropertiesInternal)Property).PeeringServicePrefixKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnInternal.PeeringServicePrefixKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnPropertiesInternal)Property).PeeringServicePrefixKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnPropertiesInternal)Property).PeeringServicePrefixKey = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringRegisteredAsnProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredAsnPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringRegisteredPrefix.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringRegisteredPrefix.cs index 2a6625a2294f..ba8da3ade3b2 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringRegisteredPrefix.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringRegisteredPrefix.cs @@ -29,28 +29,28 @@ public partial class PeeringRegisteredPrefix : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).ErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).ErrorMessage = value ?? null; } /// Internal Acessors for PeeringServicePrefixKey - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixInternal.PeeringServicePrefixKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).PeeringServicePrefixKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).PeeringServicePrefixKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixInternal.PeeringServicePrefixKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).PeeringServicePrefixKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).PeeringServicePrefixKey = value ?? null; } /// Internal Acessors for PrefixValidationState - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixInternal.PrefixValidationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).PrefixValidationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).PrefixValidationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixInternal.PrefixValidationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).PrefixValidationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).PrefixValidationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringRegisteredPrefixProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringRegisteredPrefixPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringService.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringService.cs index 550f0434a451..563144c9d58b 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringService.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringService.cs @@ -47,34 +47,34 @@ public partial class PeeringService : public string LogAnalyticWorkspacePropertyWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyWorkspaceId; } /// Internal Acessors for LogAnalyticWorkspacePropertyConnectedAgent - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.LogAnalyticWorkspacePropertyConnectedAgent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyConnectedAgent; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyConnectedAgent = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.LogAnalyticWorkspacePropertyConnectedAgent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyConnectedAgent; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyConnectedAgent = value ?? null /* arrayOf */; } /// Internal Acessors for LogAnalyticWorkspacePropertyKey - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.LogAnalyticWorkspacePropertyKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.LogAnalyticWorkspacePropertyKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyKey = value ?? null; } /// Internal Acessors for LogAnalyticWorkspacePropertyWorkspaceId - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.LogAnalyticWorkspacePropertyWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyWorkspaceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.LogAnalyticWorkspacePropertyWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyWorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticWorkspacePropertyWorkspaceId = value ?? null; } /// Internal Acessors for LogAnalyticsWorkspaceProperty - Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspaceProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.LogAnalyticsWorkspaceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticsWorkspaceProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticsWorkspaceProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspaceProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.LogAnalyticsWorkspaceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticsWorkspaceProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).LogAnalyticsWorkspaceProperty = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringServiceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceSku Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringServiceSku()); set { {_sku = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] @@ -174,7 +174,7 @@ public partial interface IPeeringService : { /// The location of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceCountry.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceCountry.cs index e49db347d383..e6638af3253e 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceCountry.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceCountry.cs @@ -23,13 +23,13 @@ public partial class PeeringServiceCountry : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceLocation.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceLocation.cs index c2e0ab1a64ea..389362044f8f 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceLocation.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceLocation.cs @@ -37,13 +37,13 @@ public partial class PeeringServiceLocation : Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceLocationProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceLocationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringServiceLocationProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServicePrefix.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServicePrefix.cs index 81b5cb36b435..11ab0cb92d20 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServicePrefix.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServicePrefix.cs @@ -44,31 +44,31 @@ public partial class PeeringServicePrefix : public string LearnedType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).LearnedType; } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).ErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).ErrorMessage = value ?? null; } /// Internal Acessors for Event - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.Event { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).Event = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.Event { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).Event = value ?? null /* arrayOf */; } /// Internal Acessors for LearnedType - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.LearnedType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).LearnedType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).LearnedType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.LearnedType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).LearnedType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).LearnedType = value ?? null; } /// Internal Acessors for PrefixValidationState - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.PrefixValidationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).PrefixValidationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).PrefixValidationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.PrefixValidationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).PrefixValidationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).PrefixValidationState = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringServicePrefixProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePrefixPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceProperties.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceProperties.cs index 85a3cd8e8ad8..f0c4bd256483 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceProperties.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceProperties.cs @@ -33,13 +33,13 @@ public partial class PeeringServiceProperties : internal Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspaceProperties LogAnalyticsWorkspaceProperty { get => (this._logAnalyticsWorkspaceProperty = this._logAnalyticsWorkspaceProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.LogAnalyticsWorkspaceProperties()); set => this._logAnalyticsWorkspaceProperty = value; } /// Internal Acessors for LogAnalyticWorkspacePropertyConnectedAgent - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal.LogAnalyticWorkspacePropertyConnectedAgent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).ConnectedAgent; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).ConnectedAgent = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal.LogAnalyticWorkspacePropertyConnectedAgent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).ConnectedAgent; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).ConnectedAgent = value ?? null /* arrayOf */; } /// Internal Acessors for LogAnalyticWorkspacePropertyKey - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal.LogAnalyticWorkspacePropertyKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).Key; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).Key = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal.LogAnalyticWorkspacePropertyKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).Key; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).Key = value ?? null; } /// Internal Acessors for LogAnalyticWorkspacePropertyWorkspaceId - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal.LogAnalyticWorkspacePropertyWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).WorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).WorkspaceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal.LogAnalyticWorkspacePropertyWorkspaceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).WorkspaceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspacePropertiesInternal)LogAnalyticsWorkspaceProperty).WorkspaceId = value ?? null; } /// Internal Acessors for LogAnalyticsWorkspaceProperty Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.ILogAnalyticsWorkspaceProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServicePropertiesInternal.LogAnalyticsWorkspaceProperty { get => (this._logAnalyticsWorkspaceProperty = this._logAnalyticsWorkspaceProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.LogAnalyticsWorkspaceProperties()); set { {_logAnalyticsWorkspaceProperty = value;} } } diff --git a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceProvider.cs b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceProvider.cs index 5ef690323655..1be0bbbd8b0f 100644 --- a/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceProvider.cs +++ b/generated/Peering/Peering.Autorest/generated/api/Models/PeeringServiceProvider.cs @@ -27,13 +27,13 @@ public partial class PeeringServiceProvider : Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceProviderProperties Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringServiceProviderInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringServiceProviderProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.Peering.Origin(Microsoft.Azure.PowerShell.Cmdlets.Peering.PropertyOrigin.Inherited)] diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/InitializeAzPeeringServiceConnectionMonitor_Initialize.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/InitializeAzPeeringServiceConnectionMonitor_Initialize.cs index 165339d3acbf..f4909a811bc7 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/InitializeAzPeeringServiceConnectionMonitor_Initialize.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/InitializeAzPeeringServiceConnectionMonitor_Initialize.cs @@ -456,7 +456,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringAsn_Delete.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringAsn_Delete.cs index dba49d86ea32..0c69593fb44f 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringAsn_Delete.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringAsn_Delete.cs @@ -483,7 +483,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -507,7 +507,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringAsn_DeleteViaIdentity.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringAsn_DeleteViaIdentity.cs index df8d864f2e2f..470066b828c3 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringAsn_DeleteViaIdentity.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringAsn_DeleteViaIdentity.cs @@ -473,7 +473,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_Delete.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_Delete.cs index f2af5594ad3f..3a70ee5c85cd 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_Delete.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_Delete.cs @@ -512,7 +512,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -536,7 +536,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_DeleteViaIdentity.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_DeleteViaIdentity.cs index 2f2bfc2c3fa7..535ffd5bfc95 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_DeleteViaIdentity.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_DeleteViaIdentity.cs @@ -482,7 +482,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -506,7 +506,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_DeleteViaIdentityPeeringService.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_DeleteViaIdentityPeeringService.cs index 27a07b28def8..27abd8d1b415 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_DeleteViaIdentityPeeringService.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_DeleteViaIdentityPeeringService.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_Delete.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_Delete.cs index 5c190338580a..c91adb40d0bb 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_Delete.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_Delete.cs @@ -511,7 +511,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -535,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_DeleteViaIdentity.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_DeleteViaIdentity.cs index 22ad990c2394..0b01bc847dba 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_DeleteViaIdentity.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_DeleteViaIdentity.cs @@ -481,7 +481,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -505,7 +505,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_DeleteViaIdentityPeering.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_DeleteViaIdentityPeering.cs index 0fbc83a2ba93..c9e05b13208d 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_DeleteViaIdentityPeering.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredAsn_DeleteViaIdentityPeering.cs @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_Delete.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_Delete.cs index 9d6a5dba70fe..5f71bf07c90e 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_Delete.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_Delete.cs @@ -511,7 +511,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -535,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_DeleteViaIdentity.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_DeleteViaIdentity.cs index 069ea3b07f11..de617183d1ea 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_DeleteViaIdentity.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_DeleteViaIdentity.cs @@ -481,7 +481,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -505,7 +505,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_DeleteViaIdentityPeering.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_DeleteViaIdentityPeering.cs index dda5cffa91a8..f8dc0fe56776 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_DeleteViaIdentityPeering.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_DeleteViaIdentityPeering.cs @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_Delete.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_Delete.cs index 41dfeab5e07e..d4d485a6f087 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_Delete.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_Delete.cs @@ -511,7 +511,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -535,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_DeleteViaIdentity.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_DeleteViaIdentity.cs index 86d99085fe17..8aed0bbdd6e0 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_DeleteViaIdentity.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_DeleteViaIdentity.cs @@ -481,7 +481,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -505,7 +505,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_DeleteViaIdentityPeeringService.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_DeleteViaIdentityPeeringService.cs index 4f97e3757408..76f15ee1db67 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_DeleteViaIdentityPeeringService.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringServicePrefix_DeleteViaIdentityPeeringService.cs @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringService_Delete.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringService_Delete.cs index c87810498939..3108d2f71188 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringService_Delete.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringService_Delete.cs @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -521,7 +521,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringService_DeleteViaIdentity.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringService_DeleteViaIdentity.cs index 039993585721..3d70b519c300 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringService_DeleteViaIdentity.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeeringService_DeleteViaIdentity.cs @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeering_Delete.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeering_Delete.cs index 58c68646ffda..d4bd6261e03e 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeering_Delete.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeering_Delete.cs @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -521,7 +521,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeering_DeleteViaIdentity.cs b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeering_DeleteViaIdentity.cs index 9c7616847f76..41634a418ee2 100644 --- a/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeering_DeleteViaIdentity.cs +++ b/generated/Peering/Peering.Autorest/generated/cmdlets/RemoveAzPeering_DeleteViaIdentity.cs @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index ac47f14a88d0..ca80a9e69796 100644 --- a/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 6fc3a3160fa4..59a25e75d670 100644 --- a/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 578bff8dbd4d..d27b4ecb8ce9 100644 --- a/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Peering/Peering.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Peering/Peering.Autorest/generated/runtime/Context.cs b/generated/Peering/Peering.Autorest/generated/runtime/Context.cs index 3b0945bdfc14..9a984df53731 100644 --- a/generated/Peering/Peering.Autorest/generated/runtime/Context.cs +++ b/generated/Peering/Peering.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Peering/Peering.Autorest/generated/runtime/MessageAttribute.cs b/generated/Peering/Peering.Autorest/generated/runtime/MessageAttribute.cs index 16f5ea9e0b16..e803737bef6b 100644 --- a/generated/Peering/Peering.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Peering/Peering.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Peering" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Peering/Peering.Autorest/generated/runtime/Properties/Resources.resx b/generated/Peering/Peering.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Peering/Peering.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Peering/Peering.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Pinecone/Pinecone.Autorest/exports/Get-AzPineconeOrganization.ps1 b/generated/Pinecone/Pinecone.Autorest/exports/Get-AzPineconeOrganization.ps1 index bb2af705b738..27ea7bf85730 100644 --- a/generated/Pinecone/Pinecone.Autorest/exports/Get-AzPineconeOrganization.ps1 +++ b/generated/Pinecone/Pinecone.Autorest/exports/Get-AzPineconeOrganization.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Pinecone/Pinecone.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Pinecone/Pinecone.Autorest/exports/ProxyCmdletDefinitions.ps1 index bb2af705b738..27ea7bf85730 100644 --- a/generated/Pinecone/Pinecone.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Pinecone/Pinecone.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Components19Kgb1NSchemasAzureResourcemanagerCommontypesManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Components19Kgb1NSchemasAzureResourcemanagerCommontypesManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs index 4f113dcda675..2e33d47853f5 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Components19Kgb1NSchemasAzureResourcemanagerCommontypesManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Components19Kgb1NSchemasAzureResourcemanagerCommontypesManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties.cs @@ -23,10 +23,10 @@ public partial class Components19Kgb1NSchemasAzureResourcemanagerCommontypesMana public string ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId; } /// Internal Acessors for ClientId - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).ClientId = value ?? null; } /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IUserAssignedIdentityInternal)__userAssignedIdentity).PrincipalId = value ?? null; } /// The principal ID of the assigned identity. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] diff --git a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/ErrorResponse.cs index e21305d9ee7c..75fc33e605f9 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inlined)] diff --git a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Operation.cs b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Operation.cs index 1ae8c04b7795..434e2beac44f 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Operation.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/OrganizationProperties.cs b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/OrganizationProperties.cs index 9c40ea59b31e..c18574f8d510 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/OrganizationProperties.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/OrganizationProperties.cs @@ -32,10 +32,10 @@ public partial class OrganizationProperties : Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetails Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal.Marketplace { get => (this._marketplace = this._marketplace ?? new Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.LiftrBaseMarketplaceDetails()); set { {_marketplace = value;} } } /// Internal Acessors for MarketplaceOfferDetail - Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseOfferDetails Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal.MarketplaceOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).OfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).OfferDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseOfferDetails Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal.MarketplaceOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).OfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).OfferDetail = value ?? null /* model class */; } /// Internal Acessors for MarketplaceSubscriptionStatus - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal.MarketplaceSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).SubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).SubscriptionStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal.MarketplaceSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).SubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetailsInternal)Marketplace).SubscriptionStatus = value ?? null; } /// Internal Acessors for PartnerProperty Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IPartnerProperties Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal.PartnerProperty { get => (this._partnerProperty = this._partnerProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.PartnerProperties()); set { {_partnerProperty = value;} } } diff --git a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/OrganizationResource.cs b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/OrganizationResource.cs index 887bfcaf1acc..ee900c52d3c4 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/OrganizationResource.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/OrganizationResource.cs @@ -61,7 +61,7 @@ public partial class OrganizationResource : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Azure subscription id for the the marketplace offer is purchased from [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inlined)] @@ -75,46 +75,64 @@ public partial class OrganizationResource : Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Marketplace - Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetails Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.Marketplace { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).Marketplace; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).Marketplace = value; } + Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseMarketplaceDetails Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.Marketplace { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).Marketplace; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).Marketplace = value ?? null /* model class */; } /// Internal Acessors for MarketplaceOfferDetail - Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseOfferDetails Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.MarketplaceOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).MarketplaceOfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).MarketplaceOfferDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseOfferDetails Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.MarketplaceOfferDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).MarketplaceOfferDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).MarketplaceOfferDetail = value ?? null /* model class */; } /// Internal Acessors for MarketplaceSubscriptionStatus - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.MarketplaceSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).MarketplaceSubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).MarketplaceSubscriptionStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.MarketplaceSubscriptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).MarketplaceSubscriptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).MarketplaceSubscriptionStatus = value ?? null; } /// Internal Acessors for PartnerProperty - Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IPartnerProperties Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.PartnerProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).PartnerProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).PartnerProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IPartnerProperties Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.PartnerProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).PartnerProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).PartnerProperty = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationProperties Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.OrganizationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SingleSignOnProperty - Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseSingleSignOnPropertiesV2 Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.SingleSignOnProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).SingleSignOnProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).SingleSignOnProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseSingleSignOnPropertiesV2 Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.SingleSignOnProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).SingleSignOnProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).SingleSignOnProperty = value ?? null /* model class */; } /// Internal Acessors for User - Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseUserDetails Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.User { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).User; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).User = value; } + Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ILiftrBaseUserDetails Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationResourceInternal.User { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).User; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IOrganizationPropertiesInternal)Property).User = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] @@ -187,31 +205,31 @@ public partial class OrganizationResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] diff --git a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Resource.cs b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Resource.cs index 648f62811b4b..9587c21ffd3c 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Resource.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } @@ -54,27 +72,27 @@ public partial class Resource : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/TrackedResource.cs b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/TrackedResource.cs index a02bada932ad..8a90de729ecf 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/api/Models/TrackedResource.cs @@ -34,16 +34,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Origin(Microsoft.Azure.PowerShell.Cmdlets.Pinecone.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index bcf2fe11ac26..ee4c51a5c1fa 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 56141abd88d9..98848d094cd6 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 7d91bae657a4..87c32e0f38a1 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Pinecone/Pinecone.Autorest/generated/runtime/Context.cs b/generated/Pinecone/Pinecone.Autorest/generated/runtime/Context.cs index 17901d169668..0522495b000d 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/runtime/Context.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Pinecone/Pinecone.Autorest/generated/runtime/MessageAttribute.cs b/generated/Pinecone/Pinecone.Autorest/generated/runtime/MessageAttribute.cs index 70e3f2a51406..b949f83f9d09 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Pinecone/Pinecone.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Pinecone.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Pinecone" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Pinecone/Pinecone.Autorest/generated/runtime/Properties/Resources.resx b/generated/Pinecone/Pinecone.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Pinecone/Pinecone.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Pinecone/Pinecone.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Portal/Portal.Autorest/exports/Get-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/Get-AzPortalDashboard.ps1 index adfb2d7558b8..2e7b4aa90c4e 100644 --- a/generated/Portal/Portal.Autorest/exports/Get-AzPortalDashboard.ps1 +++ b/generated/Portal/Portal.Autorest/exports/Get-AzPortalDashboard.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Portal/Portal.Autorest/exports/New-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/New-AzPortalDashboard.ps1 index ef7c644b52a5..289c35284684 100644 --- a/generated/Portal/Portal.Autorest/exports/New-AzPortalDashboard.ps1 +++ b/generated/Portal/Portal.Autorest/exports/New-AzPortalDashboard.ps1 @@ -16,11 +16,24 @@ <# .Synopsis -create a Dashboard. +Create a Dashboard. .Description -create a Dashboard. +Create a Dashboard. .Example New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03 +.Example +$SubscriptionId = (Get-AzContext).Subscription.Id +$ResourceGroupName = 'mydash-rg' +$DashboardName = 'my-dashboard03' +$DashboardPath = ".\resources\dash1.json" +$Location = "East US" +$ApiVersion = "2022-12-01-preview" +$Dashboard = Get-Content -Path $DashboardPath -Raw | ConvertFrom-Json +$Payload = @{ + properties = $Dashboard.properties + location = $Location +} | ConvertTo-Json -Depth 10 +Invoke-AzRestMethod -SubscriptionId $SubscriptionId -ResourceGroupName $ResourceGroupName -ResourceProviderName "Microsoft.Portal" -ResourceType "dashboards" -Name $DashboardName -ApiVersion $ApiVersion -Method PUT -Payload $Payload .Inputs Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard @@ -199,8 +212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Portal/Portal.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Portal/Portal.Autorest/exports/ProxyCmdletDefinitions.ps1 index 0273527c5b96..ee187b3c0157 100644 --- a/generated/Portal/Portal.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Portal/Portal.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -227,11 +226,24 @@ end { <# .Synopsis -create a Dashboard. +Create a Dashboard. .Description -create a Dashboard. +Create a Dashboard. .Example New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03 +.Example +$SubscriptionId = (Get-AzContext).Subscription.Id +$ResourceGroupName = 'mydash-rg' +$DashboardName = 'my-dashboard03' +$DashboardPath = ".\resources\dash1.json" +$Location = "East US" +$ApiVersion = "2022-12-01-preview" +$Dashboard = Get-Content -Path $DashboardPath -Raw | ConvertFrom-Json +$Payload = @{ + properties = $Dashboard.properties + location = $Location +} | ConvertTo-Json -Depth 10 +Invoke-AzRestMethod -SubscriptionId $SubscriptionId -ResourceGroupName $ResourceGroupName -ResourceProviderName "Microsoft.Portal" -ResourceType "dashboards" -Name $DashboardName -ApiVersion $ApiVersion -Method PUT -Payload $Payload .Inputs Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboard @@ -410,8 +422,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -625,8 +636,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -712,9 +722,9 @@ end { <# .Synopsis -update an existing Dashboard. +Update an existing Dashboard. .Description -update an existing Dashboard. +Update an existing Dashboard. .Example Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"} .Example @@ -883,8 +893,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1065,8 +1074,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Portal/Portal.Autorest/exports/Remove-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/Remove-AzPortalDashboard.ps1 index 2a09050563f4..573c69805d91 100644 --- a/generated/Portal/Portal.Autorest/exports/Remove-AzPortalDashboard.ps1 +++ b/generated/Portal/Portal.Autorest/exports/Remove-AzPortalDashboard.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Portal/Portal.Autorest/exports/Set-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/Set-AzPortalDashboard.ps1 index 1f83d67a1f5b..91d0814281bf 100644 --- a/generated/Portal/Portal.Autorest/exports/Set-AzPortalDashboard.ps1 +++ b/generated/Portal/Portal.Autorest/exports/Set-AzPortalDashboard.ps1 @@ -109,8 +109,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Portal/Portal.Autorest/exports/Update-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/exports/Update-AzPortalDashboard.ps1 index 555d2ca07920..18fbc87a90d1 100644 --- a/generated/Portal/Portal.Autorest/exports/Update-AzPortalDashboard.ps1 +++ b/generated/Portal/Portal.Autorest/exports/Update-AzPortalDashboard.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an existing Dashboard. +Update an existing Dashboard. .Description -update an existing Dashboard. +Update an existing Dashboard. .Example Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"} .Example @@ -187,8 +187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.cs index fb9c36d0d475..abafd791fa3b 100644 --- a/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.cs +++ b/generated/Portal/Portal.Autorest/generated/api/Models/Dashboard.cs @@ -40,37 +40,37 @@ public partial class Dashboard : Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningState Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPropertiesWithProvisioningState()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPropertiesWithProvisioningStateInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)] diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.cs b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.cs index 5713be78b204..474d237952bd 100644 --- a/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.cs +++ b/generated/Portal/Portal.Autorest/generated/api/Models/DashboardParts.cs @@ -28,7 +28,7 @@ public partial class DashboardParts : Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadata Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal.Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartMetadata()); set { {_metadata = value;} } } /// Internal Acessors for MetadataType - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal.MetadataType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)Metadata).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)Metadata).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal.MetadataType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)Metadata).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)Metadata).Type = value ?? null; } /// Internal Acessors for Position Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsPosition Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartsInternal.Position { get => (this._position = this._position ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.DashboardPartsPosition()); set { {_position = value;} } } diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.cs index 9ff0f08ce371..df6c455a5c69 100644 --- a/generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Portal/Portal.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)] diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.cs index 04b3526db9fd..b3bfa24cd9a6 100644 --- a/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.cs +++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadata.cs @@ -31,16 +31,16 @@ public partial class MarkdownPartMetadata : public System.Collections.Generic.List Input { get => this._input; set => this._input = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)__dashboardPartMetadata).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)__dashboardPartMetadata).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)__dashboardPartMetadata).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IDashboardPartMetadataInternal)__dashboardPartMetadata).Type = value ; } /// Internal Acessors for ContentSetting - Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal.ContentSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).ContentSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).ContentSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal.ContentSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).ContentSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).ContentSetting = value ?? null /* model class */; } /// Internal Acessors for Setting Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal.Setting { get => (this._setting = this._setting ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettings()); set { {_setting = value;} } } /// Internal Acessors for SettingsContent - Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal.SettingsContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).Content; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).Content = value; } + Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataInternal.SettingsContent { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).Content; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal)Setting).Content = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettings _setting; diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.cs b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.cs index d1b9d1985640..c5d1685fa8e0 100644 --- a/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.cs +++ b/generated/Portal/Portal.Autorest/generated/api/Models/MarkdownPartMetadataSettings.cs @@ -24,7 +24,7 @@ public partial class MarkdownPartMetadataSettings : Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContent Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal.Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.MarkdownPartMetadataSettingsContent()); set { {_content = value;} } } /// Internal Acessors for ContentSetting - Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal.ContentSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).Setting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).Setting = value; } + Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentSettings Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsInternal.ContentSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).Setting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IMarkdownPartMetadataSettingsContentInternal)Content).Setting = value ?? null /* model class */; } /// The content of the markdown part. [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inlined)] diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Operation.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.cs index 33b56cac5fbd..f24249a8b7c0 100644 --- a/generated/Portal/Portal.Autorest/generated/api/Models/Operation.cs +++ b/generated/Portal/Portal.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/Resource.cs b/generated/Portal/Portal.Autorest/generated/api/Models/Resource.cs index 9ff267597375..ee64acaf0867 100644 --- a/generated/Portal/Portal.Autorest/generated/api/Models/Resource.cs +++ b/generated/Portal/Portal.Autorest/generated/api/Models/Resource.cs @@ -34,22 +34,22 @@ public partial class Resource : Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/Portal/Portal.Autorest/generated/api/Models/TrackedResource.cs b/generated/Portal/Portal.Autorest/generated/api/Models/TrackedResource.cs index 1a06374aeec7..d5ab6b45197b 100644 --- a/generated/Portal/Portal.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Portal/Portal.Autorest/generated/api/Models/TrackedResource.cs @@ -34,34 +34,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Portal.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Portal.Origin(Microsoft.Azure.PowerShell.Cmdlets.Portal.PropertyOrigin.Inherited)] diff --git a/generated/Portal/Portal.Autorest/generated/cmdlets/RemoveAzPortalDashboard_Delete.cs b/generated/Portal/Portal.Autorest/generated/cmdlets/RemoveAzPortalDashboard_Delete.cs index ede7842ed5bf..6a599640033d 100644 --- a/generated/Portal/Portal.Autorest/generated/cmdlets/RemoveAzPortalDashboard_Delete.cs +++ b/generated/Portal/Portal.Autorest/generated/cmdlets/RemoveAzPortalDashboard_Delete.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Portal/Portal.Autorest/generated/cmdlets/RemoveAzPortalDashboard_DeleteViaIdentity.cs b/generated/Portal/Portal.Autorest/generated/cmdlets/RemoveAzPortalDashboard_DeleteViaIdentity.cs index 05262f0325bb..ca94909d9f16 100644 --- a/generated/Portal/Portal.Autorest/generated/cmdlets/RemoveAzPortalDashboard_DeleteViaIdentity.cs +++ b/generated/Portal/Portal.Autorest/generated/cmdlets/RemoveAzPortalDashboard_DeleteViaIdentity.cs @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index eefe57fa9be0..1d1fcace7eeb 100644 --- a/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 9f4e744f2bef..7fefe33f4953 100644 --- a/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 19644eeca6ec..2bcf61ec6673 100644 --- a/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Portal/Portal.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Portal/Portal.Autorest/generated/runtime/Context.cs b/generated/Portal/Portal.Autorest/generated/runtime/Context.cs index 0429638d1b14..6eaa6a636999 100644 --- a/generated/Portal/Portal.Autorest/generated/runtime/Context.cs +++ b/generated/Portal/Portal.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Portal/Portal.Autorest/generated/runtime/MessageAttribute.cs b/generated/Portal/Portal.Autorest/generated/runtime/MessageAttribute.cs index 9bf3ca063180..29c49057b657 100644 --- a/generated/Portal/Portal.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Portal/Portal.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Portal.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Portal" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Portal/Portal.Autorest/generated/runtime/Properties/Resources.resx b/generated/Portal/Portal.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Portal/Portal.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Portal/Portal.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Portal/Portal.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Portal/Portal.Autorest/internal/ProxyCmdletDefinitions.ps1 index f06da1454287..58608c6a432a 100644 --- a/generated/Portal/Portal.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Portal/Portal.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -132,9 +132,9 @@ end { <# .Synopsis -update a Dashboard. +Update a Dashboard. .Description -update a Dashboard. +Update a Dashboard. .Example Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03 diff --git a/generated/Portal/Portal.Autorest/internal/Set-AzPortalDashboard.ps1 b/generated/Portal/Portal.Autorest/internal/Set-AzPortalDashboard.ps1 index 7bf5c6193d0f..6bc7d3c07e4c 100644 --- a/generated/Portal/Portal.Autorest/internal/Set-AzPortalDashboard.ps1 +++ b/generated/Portal/Portal.Autorest/internal/Set-AzPortalDashboard.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a Dashboard. +Update a Dashboard. .Description -update a Dashboard. +Update a Dashboard. .Example Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03 diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubCustomRollout.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubCustomRollout.ps1 index 0ff0a90113d4..be32a959b76b 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubCustomRollout.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubCustomRollout.ps1 @@ -20,7 +20,7 @@ Gets the custom rollout details. .Description Gets the custom rollout details. .Example -Get-AzProviderHubCustomRollout -ProviderNamespace "Microsft.Contoso" -RolloutName "customRollout1" +Get-AzProviderHubCustomRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "customRollout1" .Inputs Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderHubIdentity @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubDefaultRollout.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubDefaultRollout.ps1 index 48fd74203e48..a6689b16b1e6 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubDefaultRollout.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubDefaultRollout.ps1 @@ -159,8 +159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubNotificationRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubNotificationRegistration.ps1 index 5084b707e172..ac29b01929b6 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubNotificationRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubNotificationRegistration.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubProviderRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubProviderRegistration.ps1 index 6272a57f61c7..70f42cbc8d11 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubProviderRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubProviderRegistration.ps1 @@ -131,8 +131,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubResourceTypeRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubResourceTypeRegistration.ps1 index 958b54017ffd..55204d0d526a 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubResourceTypeRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubResourceTypeRegistration.ps1 @@ -161,8 +161,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubSku.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubSku.ps1 index 3e35b9f686be..e99332df8af0 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubSku.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Get-AzProviderHubSku.ps1 @@ -216,8 +216,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Invoke-AzProviderHubManifestCheckin.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Invoke-AzProviderHubManifestCheckin.ps1 index 032adb872961..030bbeafb009 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Invoke-AzProviderHubManifestCheckin.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Invoke-AzProviderHubManifestCheckin.ps1 @@ -132,8 +132,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubCustomRollout.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubCustomRollout.ps1 index ddae2422ddb7..015a1cf5ed6e 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubCustomRollout.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubCustomRollout.ps1 @@ -316,8 +316,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubDefaultRollout.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubDefaultRollout.ps1 index 1a417aec9149..3cdcfb2de139 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubDefaultRollout.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubDefaultRollout.ps1 @@ -434,8 +434,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubManifest.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubManifest.ps1 index 07226a0286f3..cb081b734327 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubManifest.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubManifest.ps1 @@ -132,8 +132,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubNotificationRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubNotificationRegistration.ps1 index d744b66cef60..6cd203e50e87 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubNotificationRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubNotificationRegistration.ps1 @@ -199,8 +199,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubProviderRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubProviderRegistration.ps1 index 7368ce277caf..5d99826aae41 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubProviderRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubProviderRegistration.ps1 @@ -343,8 +343,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubResourceTypeRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubResourceTypeRegistration.ps1 index 53d2073185da..ec2f1dddf1c1 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubResourceTypeRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubResourceTypeRegistration.ps1 @@ -505,8 +505,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubSku.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubSku.ps1 index ff00fab0ff4d..2e12a7222990 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubSku.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/New-AzProviderHubSku.ps1 @@ -233,8 +233,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/ProxyCmdletDefinitions.ps1 index 581ad619a0b6..597cd9f0372b 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -20,7 +20,7 @@ Gets the custom rollout details. .Description Gets the custom rollout details. .Example -Get-AzProviderHubCustomRollout -ProviderNamespace "Microsft.Contoso" -RolloutName "customRollout1" +Get-AzProviderHubCustomRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "customRollout1" .Inputs Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderHubIdentity @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -389,8 +388,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -622,8 +620,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -826,8 +823,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1030,8 +1026,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1418,8 +1413,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1925,8 +1919,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2130,8 +2123,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2400,8 +2392,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2816,8 +2807,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3053,8 +3043,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3289,8 +3278,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3499,8 +3487,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3733,8 +3720,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4118,8 +4104,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4607,8 +4592,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4874,8 +4858,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5295,8 +5278,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5834,8 +5816,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6067,8 +6048,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6356,8 +6336,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6938,8 +6917,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7244,8 +7222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7482,8 +7459,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7744,8 +7720,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubDefaultRollout.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubDefaultRollout.ps1 index 285baef4a888..e7d527a88cc8 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubDefaultRollout.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubDefaultRollout.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubNotificationRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubNotificationRegistration.ps1 index 06b8afbd62d5..63576dca6c96 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubNotificationRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubNotificationRegistration.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubProviderRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubProviderRegistration.ps1 index bab28182b79b..fcd57286add9 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubProviderRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubProviderRegistration.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubResourceTypeRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubResourceTypeRegistration.ps1 index 8698e2d9b43e..ad1f1728a837 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubResourceTypeRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubResourceTypeRegistration.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubSku.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubSku.ps1 index 93de97576dcd..548d430aad4d 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubSku.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Remove-AzProviderHubSku.ps1 @@ -190,8 +190,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Stop-AzProviderHubDefaultRollout.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Stop-AzProviderHubDefaultRollout.ps1 index 01a5a179a6a1..e568ea5d8564 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Stop-AzProviderHubDefaultRollout.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Stop-AzProviderHubDefaultRollout.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubCustomRollout.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubCustomRollout.ps1 index 0146d5f398d3..88bb779f9293 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubCustomRollout.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubCustomRollout.ps1 @@ -313,8 +313,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubDefaultRollout.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubDefaultRollout.ps1 index 2280fb192b64..02c1dfe2afce 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubDefaultRollout.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubDefaultRollout.ps1 @@ -417,8 +417,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubNotificationRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubNotificationRegistration.ps1 index 1895fd37b57b..729ed8ec19db 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubNotificationRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubNotificationRegistration.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubProviderRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubProviderRegistration.ps1 index 690143ed4acb..b1be9ba9b355 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubProviderRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubProviderRegistration.ps1 @@ -349,8 +349,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubResourceTypeRegistration.ps1 b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubResourceTypeRegistration.ps1 index 409a926be4f4..787b1ec34207 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubResourceTypeRegistration.ps1 +++ b/generated/ProviderHub/ProviderHub.Autorest/exports/Update-AzProviderHubResourceTypeRegistration.ps1 @@ -468,8 +468,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateExpanded.cs index 512ba8935372..bea8cdd4fa08 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzProviderHubDefaultRollout_CreateExpanded : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Default rollout definition. private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.DefaultRollout(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -482,11 +473,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubDe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -802,24 +788,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaIdentityProviderRegistrationExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaIdentityProviderRegistrationExpanded.cs index 9b5e9ed88741..dfd907f72c77 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaIdentityProviderRegistrationExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaIdentityProviderRegistrationExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzProviderHubDefaultRollout_CreateViaIdentityProviderReg /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Default rollout definition. private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.DefaultRollout(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -457,11 +448,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubDe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -795,24 +781,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaJsonFilePath.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaJsonFilePath.cs index 443626a21420..f4e311a46758 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaJsonFilePath.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzProviderHubDefaultRollout_CreateViaJsonFilePath : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubDe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaJsonString.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaJsonString.cs index cbc62f73e860..ec7832e6e240 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaJsonString.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubDefaultRollout_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzProviderHubDefaultRollout_CreateViaJsonString : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubDe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateExpanded.cs index a1dccd7ff9b7..95b8edeffe14 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateExpanded.cs @@ -40,17 +40,8 @@ public partial class NewAzProviderHubProviderRegistration_CreateExpanded : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderRegistration _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.ProviderRegistration(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -548,11 +539,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubPr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -868,24 +854,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateViaJsonFilePath.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateViaJsonFilePath.cs index 28d0e2e78de8..7430146af6cb 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateViaJsonFilePath.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzProviderHubProviderRegistration_CreateViaJsonFilePath /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -249,11 +240,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubPr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -569,24 +555,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateViaJsonString.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateViaJsonString.cs index e6d3b12702d4..894367f92d7b 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateViaJsonString.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubProviderRegistration_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzProviderHubProviderRegistration_CreateViaJsonString : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -247,11 +238,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubPr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -567,24 +553,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateExpanded.cs index b83f6c3f2725..5f524a73ad14 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateExpanded.cs @@ -41,17 +41,8 @@ public partial class NewAzProviderHubResourceTypeRegistration_CreateExpanded : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.ResourceTypeRegistration(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// . [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] @@ -672,11 +663,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubRe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -992,24 +978,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaIdentityProviderRegistrationExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaIdentityProviderRegistrationExpanded.cs index c15139a9872b..a08bd0973b25 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaIdentityProviderRegistrationExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaIdentityProviderRegistrationExpanded.cs @@ -41,17 +41,8 @@ public partial class NewAzProviderHubResourceTypeRegistration_CreateViaIdentityP /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.ResourceTypeRegistration(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// . [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] @@ -647,11 +638,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubRe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -985,24 +971,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaJsonFilePath.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaJsonFilePath.cs index f55a06be384b..8cba9744d801 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaJsonFilePath.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzProviderHubResourceTypeRegistration_CreateViaJsonFileP /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubRe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaJsonString.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaJsonString.cs index 10162f40b195..01f1b7249482 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaJsonString.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/NewAzProviderHubResourceTypeRegistration_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzProviderHubResourceTypeRegistration_CreateViaJsonStrin /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.NewAzProviderHubRe /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_Delete.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_Delete.cs index c67fe665a8fe..043c7a759d41 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_Delete.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_Delete.cs @@ -494,7 +494,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -518,7 +518,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_DeleteViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_DeleteViaIdentity.cs index 2b03b2ac999c..2556921fc1ae 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_DeleteViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_DeleteViaIdentity.cs @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_DeleteViaIdentityProviderRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_DeleteViaIdentityProviderRegistration.cs index 5a5c2f9b738d..1f3a4f249c79 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_DeleteViaIdentityProviderRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubDefaultRollout_DeleteViaIdentityProviderRegistration.cs @@ -487,7 +487,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -511,7 +511,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_Delete.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_Delete.cs index 17b92236f2e7..75ff6daeed17 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_Delete.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_Delete.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_DeleteViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_DeleteViaIdentity.cs index 12ddf0f96448..2ef90def6092 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_DeleteViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_DeleteViaIdentity.cs @@ -476,7 +476,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_DeleteViaIdentityProviderRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_DeleteViaIdentityProviderRegistration.cs index af789e043bb2..52e3fb77ecd7 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_DeleteViaIdentityProviderRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubNotificationRegistration_DeleteViaIdentityProviderRegistration.cs @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -512,7 +512,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubOperation_Delete.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubOperation_Delete.cs index 7692bd9bbd27..f656e313a967 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubOperation_Delete.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubOperation_Delete.cs @@ -481,7 +481,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -505,7 +505,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubOperation_DeleteViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubOperation_DeleteViaIdentity.cs index 43fbcf20eb37..eb15ecf05491 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubOperation_DeleteViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubOperation_DeleteViaIdentity.cs @@ -472,7 +472,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -496,7 +496,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubProviderRegistration_Delete.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubProviderRegistration_Delete.cs index 6197dea7d6a8..59100550851f 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubProviderRegistration_Delete.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubProviderRegistration_Delete.cs @@ -480,7 +480,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -504,7 +504,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubProviderRegistration_DeleteViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubProviderRegistration_DeleteViaIdentity.cs index e9b114fdfab0..06c7618b993a 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubProviderRegistration_DeleteViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubProviderRegistration_DeleteViaIdentity.cs @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_Delete.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_Delete.cs index 18b991409204..b71337682eaf 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_Delete.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_Delete.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_DeleteViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_DeleteViaIdentity.cs index ed0d993a1cba..c107887b3672 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_DeleteViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_DeleteViaIdentity.cs @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_DeleteViaIdentityProviderRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_DeleteViaIdentityProviderRegistration.cs index e34725abaaf9..e5c42e998567 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_DeleteViaIdentityProviderRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubResourceTypeRegistration_DeleteViaIdentityProviderRegistration.cs @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -512,7 +512,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_Delete.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_Delete.cs index 23c11ed32d6d..cc9e83d57728 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_Delete.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_Delete.cs @@ -523,7 +523,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -547,7 +547,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentity.cs index 5a9202f0701c..3ab8a0d88b04 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentity.cs @@ -485,7 +485,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityProviderRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityProviderRegistration.cs index e8287466084f..088dcbd9e516 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityProviderRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityProviderRegistration.cs @@ -516,7 +516,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -540,7 +540,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityResourcetypeRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityResourcetypeRegistration.cs index 6ee723a69a72..88178e4d33b9 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityResourcetypeRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityResourcetypeRegistration.cs @@ -496,7 +496,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -520,7 +520,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityResourcetypeRegistration1.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityResourcetypeRegistration1.cs index 89cb81da82f0..c1726bf4d98b 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityResourcetypeRegistration1.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeFirst_DeleteViaIdentityResourcetypeRegistration1.cs @@ -506,7 +506,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -530,7 +530,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_Delete.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_Delete.cs index cd33fdaa851f..85f4db994ca4 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_Delete.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_Delete.cs @@ -537,7 +537,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -561,7 +561,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentity.cs index b50b98e5671c..2ef602f54e7c 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentity.cs @@ -489,7 +489,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityProviderRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityProviderRegistration.cs index 81f98d70a71f..25e262265ec1 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityProviderRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityProviderRegistration.cs @@ -530,7 +530,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -554,7 +554,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration.cs index 2bb8f0445173..5fbd94a75191 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration.cs @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration1.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration1.cs index 972ad0714553..5f102889d81b 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration1.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration1.cs @@ -510,7 +510,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -534,7 +534,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration2.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration2.cs index 6bab511eb6d1..ad48cbf5bc93 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration2.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeSecond_DeleteViaIdentityResourcetypeRegistration2.cs @@ -520,7 +520,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -544,7 +544,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_Delete.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_Delete.cs index 9e91166fa1bf..e53ac106d299 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_Delete.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_Delete.cs @@ -551,7 +551,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -575,7 +575,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentity.cs index 5010cc736d9d..7a98e870d5f2 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentity.cs @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityProviderRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityProviderRegistration.cs index 5ccacd19018e..ab00ab5efd46 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityProviderRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityProviderRegistration.cs @@ -544,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -568,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration.cs index 1a35009ac655..48baaac6a407 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration.cs @@ -504,7 +504,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -528,7 +528,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration1.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration1.cs index 881eb404b07c..9e15701356b6 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration1.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration1.cs @@ -514,7 +514,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -538,7 +538,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration2.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration2.cs index 8bf770eab0a1..3213ec76ea46 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration2.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration2.cs @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -548,7 +548,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration3.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration3.cs index 2419c91a5fdf..df4548a50698 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration3.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSkuNestedResourceTypeThird_DeleteViaIdentityResourcetypeRegistration3.cs @@ -534,7 +534,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -558,7 +558,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_Delete.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_Delete.cs index d3c62c042ffd..b8ed59112bff 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_Delete.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_Delete.cs @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentity.cs index 285a53620e58..85a4a04621b9 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentity.cs @@ -480,7 +480,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -504,7 +504,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentityProviderRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentityProviderRegistration.cs index 5dd975907f2d..8efe24b4b730 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentityProviderRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentityProviderRegistration.cs @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -525,7 +525,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentityResourcetypeRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentityResourcetypeRegistration.cs index 3c2a0ded8c1c..b98ae5b37fd9 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentityResourcetypeRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/RemoveAzProviderHubSku_DeleteViaIdentityResourcetypeRegistration.cs @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -516,7 +516,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_Stop.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_Stop.cs index 7cb4e19eda48..757651806bf5 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_Stop.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_Stop.cs @@ -484,7 +484,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_StopViaIdentity.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_StopViaIdentity.cs index 055645dac7f9..3ae335adb3e9 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_StopViaIdentity.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_StopViaIdentity.cs @@ -465,7 +465,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_StopViaIdentityProviderRegistration.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_StopViaIdentityProviderRegistration.cs index ad55a26af1c5..5cc64fa7eb01 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_StopViaIdentityProviderRegistration.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/StopAzProviderHubDefaultRollout_StopViaIdentityProviderRegistration.cs @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateExpanded.cs index 8cbf5c281dfd..ea6f98d9b72e 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzProviderHubDefaultRollout_UpdateExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Default rollout definition. private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.DefaultRollout(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -482,11 +473,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.UpdateAzProviderHu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -888,24 +874,7 @@ private void Update_propertiesBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateViaIdentityExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateViaIdentityExpanded.cs index 05f7be8fd257..ce908075a306 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateViaIdentityExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzProviderHubDefaultRollout_UpdateViaIdentityExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Default rollout definition. private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.DefaultRollout(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -442,11 +433,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.UpdateAzProviderHu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -870,24 +856,7 @@ private void Update_propertiesBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateViaIdentityProviderRegistrationExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateViaIdentityProviderRegistrationExpanded.cs index 9406a51690db..b480092fa9a9 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateViaIdentityProviderRegistrationExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubDefaultRollout_UpdateViaIdentityProviderRegistrationExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzProviderHubDefaultRollout_UpdateViaIdentityProvider /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Default rollout definition. private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.DefaultRollout(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -457,11 +448,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.UpdateAzProviderHu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -883,24 +869,7 @@ private void Update_propertiesBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IDefaultRollout var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubProviderRegistration_UpdateExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubProviderRegistration_UpdateExpanded.cs index fefcd5d0dfc8..e622dfee2705 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubProviderRegistration_UpdateExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubProviderRegistration_UpdateExpanded.cs @@ -40,17 +40,8 @@ public partial class UpdateAzProviderHubProviderRegistration_UpdateExpanded : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderRegistration _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.ProviderRegistration(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -548,11 +539,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.UpdateAzProviderHu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -982,24 +968,7 @@ private void Update_propertiesBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubProviderRegistration_UpdateViaIdentityExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubProviderRegistration_UpdateViaIdentityExpanded.cs index f99616212bdb..eb59b574eae1 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubProviderRegistration_UpdateViaIdentityExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubProviderRegistration_UpdateViaIdentityExpanded.cs @@ -40,17 +40,8 @@ public partial class UpdateAzProviderHubProviderRegistration_UpdateViaIdentityEx /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderRegistration _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.ProviderRegistration(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.ProviderHub.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.ParameterCategory.Runtime)] @@ -523,11 +514,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.UpdateAzProviderHu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -976,24 +962,7 @@ private void Update_propertiesBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IProviderRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateExpanded.cs index 8d8776e3ba62..787e83d1cd7c 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateExpanded.cs @@ -40,17 +40,8 @@ public partial class UpdateAzProviderHubResourceTypeRegistration_UpdateExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.ResourceTypeRegistration(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// . [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] @@ -673,11 +664,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.UpdateAzProviderHu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1143,24 +1129,7 @@ private void Update_propertiesBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdentityExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdentityExpanded.cs index 22e39a263990..2b2fe4cb5f68 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdentityExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdentityExpanded.cs @@ -40,17 +40,8 @@ public partial class UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdenti /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.ResourceTypeRegistration(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// . [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] @@ -631,11 +622,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.UpdateAzProviderHu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1124,24 +1110,7 @@ private void Update_propertiesBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdentityProviderRegistrationExpanded.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdentityProviderRegistrationExpanded.cs index e4a146c35c5d..02a3139e04b3 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdentityProviderRegistrationExpanded.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/cmdlets/UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdentityProviderRegistrationExpanded.cs @@ -40,17 +40,8 @@ public partial class UpdateAzProviderHubResourceTypeRegistration_UpdateViaIdenti /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - private Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.ResourceTypeRegistration(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// . [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] @@ -646,11 +637,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Cmdlets.UpdateAzProviderHu /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -1136,24 +1122,7 @@ private void Update_propertiesBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.IResourceTypeRegistration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index ede764d8d229..530e6b0da180 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/Context.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/Context.cs index ab2de2a65762..7cdb5e319b1d 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/Context.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/MessageAttribute.cs b/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/MessageAttribute.cs index 5e551db67fb8..cb0356150e42 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.ProviderHub" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/Properties/Resources.resx b/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/ProviderHub/ProviderHub.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Purview/Purview.Autorest/exports/Add-AzPurviewAccountRootCollectionAdmin.ps1 b/generated/Purview/Purview.Autorest/exports/Add-AzPurviewAccountRootCollectionAdmin.ps1 index d5be3577887d..7fb98277721a 100644 --- a/generated/Purview/Purview.Autorest/exports/Add-AzPurviewAccountRootCollectionAdmin.ps1 +++ b/generated/Purview/Purview.Autorest/exports/Add-AzPurviewAccountRootCollectionAdmin.ps1 @@ -166,8 +166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/Get-AzPurviewAccount.ps1 b/generated/Purview/Purview.Autorest/exports/Get-AzPurviewAccount.ps1 index 7d150e74feaa..d76ade64feec 100644 --- a/generated/Purview/Purview.Autorest/exports/Get-AzPurviewAccount.ps1 +++ b/generated/Purview/Purview.Autorest/exports/Get-AzPurviewAccount.ps1 @@ -150,8 +150,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/Get-AzPurviewAccountKey.ps1 b/generated/Purview/Purview.Autorest/exports/Get-AzPurviewAccountKey.ps1 index fc94f9572515..d04ee5132503 100644 --- a/generated/Purview/Purview.Autorest/exports/Get-AzPurviewAccountKey.ps1 +++ b/generated/Purview/Purview.Autorest/exports/Get-AzPurviewAccountKey.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/Get-AzPurviewDefaultAccount.ps1 b/generated/Purview/Purview.Autorest/exports/Get-AzPurviewDefaultAccount.ps1 index 2019f8bd3188..9df7f6d69532 100644 --- a/generated/Purview/Purview.Autorest/exports/Get-AzPurviewDefaultAccount.ps1 +++ b/generated/Purview/Purview.Autorest/exports/Get-AzPurviewDefaultAccount.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/New-AzPurviewAccount.ps1 b/generated/Purview/Purview.Autorest/exports/New-AzPurviewAccount.ps1 index 90973683225b..00e41534546f 100644 --- a/generated/Purview/Purview.Autorest/exports/New-AzPurviewAccount.ps1 +++ b/generated/Purview/Purview.Autorest/exports/New-AzPurviewAccount.ps1 @@ -183,8 +183,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Purview/Purview.Autorest/exports/ProxyCmdletDefinitions.ps1 index 60b344055d41..76f20548898f 100644 --- a/generated/Purview/Purview.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Purview/Purview.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -332,8 +331,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -517,8 +515,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -734,8 +731,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -923,8 +919,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1168,8 +1163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1407,8 +1401,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1663,8 +1656,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1879,8 +1871,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2075,8 +2066,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/Remove-AzPurviewAccount.ps1 b/generated/Purview/Purview.Autorest/exports/Remove-AzPurviewAccount.ps1 index c784cbd58e9c..99ab73266e5b 100644 --- a/generated/Purview/Purview.Autorest/exports/Remove-AzPurviewAccount.ps1 +++ b/generated/Purview/Purview.Autorest/exports/Remove-AzPurviewAccount.ps1 @@ -154,8 +154,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/Remove-AzPurviewDefaultAccount.ps1 b/generated/Purview/Purview.Autorest/exports/Remove-AzPurviewDefaultAccount.ps1 index c62d8335fe22..483191f37749 100644 --- a/generated/Purview/Purview.Autorest/exports/Remove-AzPurviewDefaultAccount.ps1 +++ b/generated/Purview/Purview.Autorest/exports/Remove-AzPurviewDefaultAccount.ps1 @@ -118,8 +118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/Set-AzPurviewDefaultAccount.ps1 b/generated/Purview/Purview.Autorest/exports/Set-AzPurviewDefaultAccount.ps1 index 66f208f7e9c3..4bba9a7bd0f5 100644 --- a/generated/Purview/Purview.Autorest/exports/Set-AzPurviewDefaultAccount.ps1 +++ b/generated/Purview/Purview.Autorest/exports/Set-AzPurviewDefaultAccount.ps1 @@ -144,8 +144,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/Test-AzPurviewAccountNameAvailability.ps1 b/generated/Purview/Purview.Autorest/exports/Test-AzPurviewAccountNameAvailability.ps1 index 2a4fded16603..73cf6e006d9f 100644 --- a/generated/Purview/Purview.Autorest/exports/Test-AzPurviewAccountNameAvailability.ps1 +++ b/generated/Purview/Purview.Autorest/exports/Test-AzPurviewAccountNameAvailability.ps1 @@ -124,8 +124,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/exports/Update-AzPurviewAccount.ps1 b/generated/Purview/Purview.Autorest/exports/Update-AzPurviewAccount.ps1 index d1b549d7dce7..fd17e62fc963 100644 --- a/generated/Purview/Purview.Autorest/exports/Update-AzPurviewAccount.ps1 +++ b/generated/Purview/Purview.Autorest/exports/Update-AzPurviewAccount.ps1 @@ -182,8 +182,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddExpanded.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddExpanded.cs index 1ee12cdd146e..dcfbd01510d3 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddExpanded.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddExpanded.cs @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaIdentityExpanded.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaIdentityExpanded.cs index 367ca9ee27a5..ea91ac2d5e3e 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaIdentityExpanded.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaIdentityExpanded.cs @@ -481,7 +481,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaJsonFilePath.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaJsonFilePath.cs index 9209aad58286..9b3c922b15b4 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaJsonFilePath.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaJsonFilePath.cs @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaJsonString.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaJsonString.cs index b7ce0ff38640..c02c1c653b93 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaJsonString.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/AddAzPurviewAccountRootCollectionAdmin_AddViaJsonString.cs @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateExpanded.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateExpanded.cs index 331b0adb6b56..9fc3679f027a 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateExpanded.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzPurviewAccount_CreateExpanded : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Purview.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Purview.ParameterCategory.Runtime)] @@ -324,11 +315,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Purview.Cmdlets.NewAzPurviewAccount_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Purview.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -644,24 +630,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateViaJsonFilePath.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateViaJsonFilePath.cs index 9e405e519e4b..5461db45e678 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateViaJsonFilePath.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzPurviewAccount_CreateViaJsonFilePath : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Purview.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Purview.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Purview.Cmdlets.NewAzPurviewAccount_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Purview.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateViaJsonString.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateViaJsonString.cs index c8c8a2082108..b6a478dea3ca 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateViaJsonString.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/NewAzPurviewAccount_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzPurviewAccount_CreateViaJsonString : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Purview.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Purview.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Purview.Cmdlets.NewAzPurviewAccount_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Purview.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewAccount_Delete.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewAccount_Delete.cs index e0e66ddb756d..4b22dc544e37 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewAccount_Delete.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewAccount_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzPurviewAccount_Delete : global::System.Management.A /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Purview.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Purview.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Purview.Cmdlets.RemoveAzPurviewAccount /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Purview.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewAccount_DeleteViaIdentity.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewAccount_DeleteViaIdentity.cs index 9e610e331e5a..c0b9ba294ea5 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewAccount_DeleteViaIdentity.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewAccount_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzPurviewAccount_DeleteViaIdentity : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Purview.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Purview.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Purview.Cmdlets.RemoveAzPurviewAccount /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Purview.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewDefaultAccount_Remove.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewDefaultAccount_Remove.cs index b92048c04f8e..5d24929840c4 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewDefaultAccount_Remove.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/RemoveAzPurviewDefaultAccount_Remove.cs @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -516,7 +516,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateExpanded.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateExpanded.cs index a77c3441851f..46c61f8e82dd 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateExpanded.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzPurviewAccount_UpdateExpanded : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Purview.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Purview.ParameterCategory.Runtime)] @@ -274,11 +265,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Purview.Cmdlets.UpdateAzPurviewAccount /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Purview.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -594,24 +580,7 @@ public UpdateAzPurviewAccount_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaIdentityExpanded.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaIdentityExpanded.cs index aac17884370d..78295a380d27 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaIdentityExpanded.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzPurviewAccount_UpdateViaIdentityExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Purview.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Purview.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Purview.Cmdlets.UpdateAzPurviewAccount /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Purview.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,24 +557,7 @@ public UpdateAzPurviewAccount_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaJsonFilePath.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaJsonFilePath.cs index f31d650aea56..f555b4bfb500 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaJsonFilePath.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzPurviewAccount_UpdateViaJsonFilePath : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Purview.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Purview.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Purview.Cmdlets.UpdateAzPurviewAccount /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Purview.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ public UpdateAzPurviewAccount_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaJsonString.cs b/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaJsonString.cs index 9544a666caa0..2292342f8ccd 100644 --- a/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaJsonString.cs +++ b/generated/Purview/Purview.Autorest/generated/cmdlets/UpdateAzPurviewAccount_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzPurviewAccount_UpdateViaJsonString : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Purview.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Purview.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Purview.Cmdlets.UpdateAzPurviewAccount /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Purview.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ public UpdateAzPurviewAccount_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Purview.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Purview/Purview.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Purview/Purview.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 8757bf8349a9..91aeae4d6f0a 100644 --- a/generated/Purview/Purview.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Purview/Purview.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Purview/Purview.Autorest/generated/runtime/Context.cs b/generated/Purview/Purview.Autorest/generated/runtime/Context.cs index 3387ddfb5fc2..dc4ebe727d1d 100644 --- a/generated/Purview/Purview.Autorest/generated/runtime/Context.cs +++ b/generated/Purview/Purview.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Purview.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewClassificationRule.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewClassificationRule.ps1 index 6adf3907b657..99f37b7202d1 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewClassificationRule.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewClassificationRule.ps1 @@ -109,8 +109,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewClassificationRuleVersion.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewClassificationRuleVersion.ps1 index 8fbe4979f291..a527d3445752 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewClassificationRuleVersion.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewClassificationRuleVersion.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewDataSource.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewDataSource.ps1 index dc85f7e44d87..86a7fb36d893 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewDataSource.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewDataSource.ps1 @@ -109,8 +109,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewFilter.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewFilter.ps1 index 07f3631b808b..0cc938802516 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewFilter.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewFilter.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewKeyVaultConnection.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewKeyVaultConnection.ps1 index d34d67217ef5..a77715e2003f 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewKeyVaultConnection.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewKeyVaultConnection.ps1 @@ -108,8 +108,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScan.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScan.ps1 index 9e642450e27f..1b1757eaeeea 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScan.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScan.ps1 @@ -115,8 +115,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScanResultScanHistory.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScanResultScanHistory.ps1 index f833fdfe9918..3215c869bb23 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScanResultScanHistory.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScanResultScanHistory.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScanRuleset.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScanRuleset.ps1 index faf06eed85c3..edd4ab862720 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScanRuleset.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewScanRuleset.ps1 @@ -109,8 +109,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRuleset.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRuleset.ps1 index 43897179e4ba..27b805b8720d 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRuleset.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRuleset.ps1 @@ -118,8 +118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRulesetLatest.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRulesetLatest.ps1 index 88607b05907b..f2f903040240 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRulesetLatest.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRulesetLatest.ps1 @@ -107,8 +107,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRulesetVersion.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRulesetVersion.ps1 index 9353f7a40d36..268866c8f380 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRulesetVersion.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewSystemScanRulesetVersion.ps1 @@ -107,8 +107,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewTrigger.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewTrigger.ps1 index e79476527560..89630feb0710 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewTrigger.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Get-AzPurviewTrigger.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Invoke-AzPurviewTagClassificationRuleClassificationVersion.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Invoke-AzPurviewTagClassificationRuleClassificationVersion.ps1 index 389daf907ec0..44dfe9ff33eb 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Invoke-AzPurviewTagClassificationRuleClassificationVersion.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Invoke-AzPurviewTagClassificationRuleClassificationVersion.ps1 @@ -119,8 +119,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewClassificationRule.ps1 b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewClassificationRule.ps1 index 3089ea08cd84..5de9490afa64 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewClassificationRule.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewClassificationRule.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewDataSource.ps1 b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewDataSource.ps1 index 261df549b075..fb61c63fb42b 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewDataSource.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewDataSource.ps1 @@ -135,8 +135,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewFilter.ps1 b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewFilter.ps1 index c67d0b062361..92f71dd9b184 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewFilter.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewFilter.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewKeyVaultConnection.ps1 b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewKeyVaultConnection.ps1 index 743477808cc7..a29a6cff21c3 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewKeyVaultConnection.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewKeyVaultConnection.ps1 @@ -135,8 +135,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewScan.ps1 b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewScan.ps1 index 8024f3d7cca9..9ada3a6dd692 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewScan.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewScan.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewScanRuleset.ps1 b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewScanRuleset.ps1 index 4968804ca0d9..2b206160b760 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewScanRuleset.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewScanRuleset.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewTrigger.ps1 b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewTrigger.ps1 index bacf6f93e8e5..90f3450ca223 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewTrigger.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/New-AzPurviewTrigger.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Purview/Purviewdata.Autorest/exports/ProxyCmdletDefinitions.ps1 index 963a9b2f96b3..e0bc5c30ae8e 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -278,8 +277,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -451,8 +449,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -627,8 +624,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -798,8 +794,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -974,8 +969,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1146,8 +1140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1325,8 +1318,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1496,8 +1488,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1666,8 +1657,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1847,8 +1837,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2024,8 +2013,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2206,8 +2194,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2407,8 +2394,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2607,8 +2593,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2813,8 +2798,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3013,8 +2997,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3214,8 +3197,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3420,8 +3402,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3643,8 +3624,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3821,8 +3801,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3997,8 +3976,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4172,8 +4150,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4348,8 +4325,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4530,8 +4506,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4711,8 +4686,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4899,8 +4873,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5080,8 +5053,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5257,8 +5229,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5434,8 +5405,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5623,8 +5593,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5804,8 +5773,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5988,8 +5956,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6171,8 +6138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6449,8 +6415,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewClassificationRule.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewClassificationRule.ps1 index 22fcb50b37ab..8e3cc81a8ab7 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewClassificationRule.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewClassificationRule.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewDataSource.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewDataSource.ps1 index 1f726c644827..b9e55f506c48 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewDataSource.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewDataSource.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewKeyVaultConnection.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewKeyVaultConnection.ps1 index d115ee5307eb..afadd0636f03 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewKeyVaultConnection.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewKeyVaultConnection.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewScan.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewScan.ps1 index 062ba7ca4ef6..eee943c50740 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewScan.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewScan.ps1 @@ -119,8 +119,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewScanRuleset.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewScanRuleset.ps1 index 53f0d845770b..f2bfaa73f50f 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewScanRuleset.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewScanRuleset.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewTrigger.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewTrigger.ps1 index d387bdbd7bd0..1af3d01b7eb7 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewTrigger.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Remove-AzPurviewTrigger.ps1 @@ -118,8 +118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Start-AzPurviewScanResultScan.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Start-AzPurviewScanResultScan.ps1 index a4faed9e643a..852caac14244 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Start-AzPurviewScanResultScan.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Start-AzPurviewScanResultScan.ps1 @@ -125,8 +125,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Stop-AzPurviewScanResultScan.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Stop-AzPurviewScanResultScan.ps1 index 59fd87c943f6..7a1036c69a04 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Stop-AzPurviewScanResultScan.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Stop-AzPurviewScanResultScan.ps1 @@ -118,8 +118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewClassificationRule.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewClassificationRule.ps1 index 480cfe0941cf..e40ac6ecc89d 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewClassificationRule.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewClassificationRule.ps1 @@ -114,8 +114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewDataSource.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewDataSource.ps1 index 07c87e240121..082a98bcd2fd 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewDataSource.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewDataSource.ps1 @@ -114,8 +114,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewFilter.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewFilter.ps1 index f6b798bc2073..013966aa202a 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewFilter.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewFilter.ps1 @@ -126,8 +126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewKeyVaultConnection.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewKeyVaultConnection.ps1 index d2f5971c1cdb..36ab0bb69480 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewKeyVaultConnection.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewKeyVaultConnection.ps1 @@ -118,8 +118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewScan.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewScan.ps1 index 9aed8f991eff..c857197cecbf 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewScan.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewScan.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewScanRuleset.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewScanRuleset.ps1 index 0b5c4b2b94bc..407f345189b9 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewScanRuleset.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewScanRuleset.ps1 @@ -121,8 +121,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewTrigger.ps1 b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewTrigger.ps1 index 50ed49d2c9a5..e1b2ee4e0fd9 100644 --- a/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewTrigger.ps1 +++ b/generated/Purview/Purviewdata.Autorest/exports/Update-AzPurviewTrigger.ps1 @@ -215,8 +215,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Purview/Purviewdata.Autorest/generated/Module.cs b/generated/Purview/Purviewdata.Autorest/generated/Module.cs index 918baf998bcc..3954b02e7958 100644 --- a/generated/Purview/Purviewdata.Autorest/generated/Module.cs +++ b/generated/Purview/Purviewdata.Autorest/generated/Module.cs @@ -86,7 +86,7 @@ public partial class Module public static Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } /// The Name of this module - public string Name => @"Az.Purviewdata"; + public string Name => @"Az.Purview"; /// The delegate to call when this module is loaded (supporting a commmon module). public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } @@ -95,7 +95,7 @@ public partial class Module public global::System.String ProfileName { get; set; } /// The ResourceID for this module (azure arm). - public string ResourceId => @"Az.Purviewdata"; + public string ResourceId => @"Az.Purview"; /// The delegate to call in WriteObject to sanitize the output object. public SanitizerDelegate SanitizeOutput { get; set; } diff --git a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewClassificationRule_Delete.cs b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewClassificationRule_Delete.cs index 2d1ba73489ce..755d2d94498f 100644 --- a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewClassificationRule_Delete.cs +++ b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewClassificationRule_Delete.cs @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewDataSource_Delete.cs b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewDataSource_Delete.cs index 9d5999d110bb..48c9bb23bef9 100644 --- a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewDataSource_Delete.cs +++ b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewDataSource_Delete.cs @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewKeyVaultConnection_Delete.cs b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewKeyVaultConnection_Delete.cs index 10ba21bae402..fb12d388e1cf 100644 --- a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewKeyVaultConnection_Delete.cs +++ b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewKeyVaultConnection_Delete.cs @@ -478,7 +478,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewScanRuleset_Delete.cs b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewScanRuleset_Delete.cs index bbe4620bf856..8d230029a45f 100644 --- a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewScanRuleset_Delete.cs +++ b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewScanRuleset_Delete.cs @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewScan_Delete.cs b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewScan_Delete.cs index b0a6299a1472..3b44641dbd1d 100644 --- a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewScan_Delete.cs +++ b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewScan_Delete.cs @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewTrigger_Delete.cs b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewTrigger_Delete.cs index ea3392286f39..dcb671c3ebc2 100644 --- a/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewTrigger_Delete.cs +++ b/generated/Purview/Purviewdata.Autorest/generated/cmdlets/RemoveAzPurviewTrigger_Delete.cs @@ -491,7 +491,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Purview/Purviewdata.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Purview/Purviewdata.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 3e4b7e6d43c3..4959801cad62 100644 --- a/generated/Purview/Purviewdata.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Purview/Purviewdata.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Purview/Purviewdata.Autorest/generated/runtime/Context.cs b/generated/Purview/Purviewdata.Autorest/generated/runtime/Context.cs index 6e12ea8aac63..6c5192caf9c8 100644 --- a/generated/Purview/Purviewdata.Autorest/generated/runtime/Context.cs +++ b/generated/Purview/Purviewdata.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Purviewdata.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Quantum/Quantum.Autorest/exports/Get-AzQuantumOffering.ps1 b/generated/Quantum/Quantum.Autorest/exports/Get-AzQuantumOffering.ps1 index 4fd0b9155e36..6d9466cb857c 100644 --- a/generated/Quantum/Quantum.Autorest/exports/Get-AzQuantumOffering.ps1 +++ b/generated/Quantum/Quantum.Autorest/exports/Get-AzQuantumOffering.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Quantum/Quantum.Autorest/exports/Get-AzQuantumWorkspace.ps1 b/generated/Quantum/Quantum.Autorest/exports/Get-AzQuantumWorkspace.ps1 index ae026f76b3d0..bb179abce88a 100644 --- a/generated/Quantum/Quantum.Autorest/exports/Get-AzQuantumWorkspace.ps1 +++ b/generated/Quantum/Quantum.Autorest/exports/Get-AzQuantumWorkspace.ps1 @@ -139,8 +139,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Quantum/Quantum.Autorest/exports/New-AzQuantumWorkspace.ps1 b/generated/Quantum/Quantum.Autorest/exports/New-AzQuantumWorkspace.ps1 index 403bec3338f7..1e5be47f2ef8 100644 --- a/generated/Quantum/Quantum.Autorest/exports/New-AzQuantumWorkspace.ps1 +++ b/generated/Quantum/Quantum.Autorest/exports/New-AzQuantumWorkspace.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a workspace resource. +Create a workspace resource. .Description -create a workspace resource. +Create a workspace resource. .Example $object = New-AzQuantumProviderObject -Id "ionq" -Sku "pay-as-you-go-cred" New-AzQuantumWorkspace -Name azps-qw -ResourceGroupName azps_test_group_quantum -Location eastus -EnableSystemAssignedIdentity -Provider $object -StorageAccount "/subscriptions/{subId}/resourceGroups/azps_test_group_quantum/providers/Microsoft.Storage/storageAccounts/azpssa" @@ -182,8 +182,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Quantum/Quantum.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Quantum/Quantum.Autorest/exports/ProxyCmdletDefinitions.ps1 index 25d157cfba26..7ab34da98343 100644 --- a/generated/Quantum/Quantum.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Quantum/Quantum.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -315,8 +314,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -404,9 +402,9 @@ end { <# .Synopsis -create a workspace resource. +Create a workspace resource. .Description -create a workspace resource. +Create a workspace resource. .Example $object = New-AzQuantumProviderObject -Id "ionq" -Sku "pay-as-you-go-cred" New-AzQuantumWorkspace -Name azps-qw -ResourceGroupName azps_test_group_quantum -Location eastus -EnableSystemAssignedIdentity -Provider $object -StorageAccount "/subscriptions/{subId}/resourceGroups/azps_test_group_quantum/providers/Microsoft.Storage/storageAccounts/azpssa" @@ -570,8 +568,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -794,8 +791,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1020,8 +1016,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1109,9 +1104,9 @@ end { <# .Synopsis -update an existing workspace's tags. +Update an existing workspace's tags. .Description -update an existing workspace's tags. +Update an existing workspace's tags. .Example Update-AzQuantumWorkspace -ResourceGroupName azps_test_group_quantum -Name azps-qw -Tag @{"abc"="123"} .Example @@ -1253,8 +1248,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Quantum/Quantum.Autorest/exports/Remove-AzQuantumWorkspace.ps1 b/generated/Quantum/Quantum.Autorest/exports/Remove-AzQuantumWorkspace.ps1 index 81ba10d213d8..7387e21a535c 100644 --- a/generated/Quantum/Quantum.Autorest/exports/Remove-AzQuantumWorkspace.ps1 +++ b/generated/Quantum/Quantum.Autorest/exports/Remove-AzQuantumWorkspace.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Quantum/Quantum.Autorest/exports/Test-AzQuantumWorkspaceNameAvailability.ps1 b/generated/Quantum/Quantum.Autorest/exports/Test-AzQuantumWorkspaceNameAvailability.ps1 index 510b59d8b68f..9067f0c39150 100644 --- a/generated/Quantum/Quantum.Autorest/exports/Test-AzQuantumWorkspaceNameAvailability.ps1 +++ b/generated/Quantum/Quantum.Autorest/exports/Test-AzQuantumWorkspaceNameAvailability.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Quantum/Quantum.Autorest/exports/Update-AzQuantumWorkspace.ps1 b/generated/Quantum/Quantum.Autorest/exports/Update-AzQuantumWorkspace.ps1 index 01902c685a6a..895c644d4993 100644 --- a/generated/Quantum/Quantum.Autorest/exports/Update-AzQuantumWorkspace.ps1 +++ b/generated/Quantum/Quantum.Autorest/exports/Update-AzQuantumWorkspace.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an existing workspace's tags. +Update an existing workspace's tags. .Description -update an existing workspace's tags. +Update an existing workspace's tags. .Example Update-AzQuantumWorkspace -ResourceGroupName azps_test_group_quantum -Name azps-qw -Tag @{"abc"="123"} .Example @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Quantum/Quantum.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Quantum/Quantum.Autorest/generated/api/Models/ErrorResponse.cs index b7043ade32ba..d7be654207ba 100644 --- a/generated/Quantum/Quantum.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Quantum/Quantum.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inlined)] diff --git a/generated/Quantum/Quantum.Autorest/generated/api/Models/ProviderDescription.cs b/generated/Quantum/Quantum.Autorest/generated/api/Models/ProviderDescription.cs index 34c72a08d859..98778f79e8da 100644 --- a/generated/Quantum/Quantum.Autorest/generated/api/Models/ProviderDescription.cs +++ b/generated/Quantum/Quantum.Autorest/generated/api/Models/ProviderDescription.cs @@ -51,31 +51,31 @@ public partial class ProviderDescription : public string ManagedApplicationPublisherId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplicationPublisherId; } /// Internal Acessors for Aad - Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAad Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.Aad { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Aad; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Aad = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAad Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.Aad { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Aad; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Aad = value ?? null /* model class */; } /// Internal Acessors for AadApplicationId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.AadApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).AadApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).AadApplicationId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.AadApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).AadApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).AadApplicationId = value ?? null; } /// Internal Acessors for AadTenantId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.AadTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).AadTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).AadTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.AadTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).AadTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).AadTenantId = value ?? null; } /// Internal Acessors for Company - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.Company { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Company; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Company = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.Company { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Company; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Company = value ?? null; } /// Internal Acessors for DefaultEndpoint - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.DefaultEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).DefaultEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).DefaultEndpoint = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.DefaultEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).DefaultEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).DefaultEndpoint = value ?? null; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for ManagedApplication - Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplication Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.ManagedApplication { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplication; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplication = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplication Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.ManagedApplication { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplication; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplication = value ?? null /* model class */; } /// Internal Acessors for ManagedApplicationOfferId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.ManagedApplicationOfferId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplicationOfferId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplicationOfferId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.ManagedApplicationOfferId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplicationOfferId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplicationOfferId = value ?? null; } /// Internal Acessors for ManagedApplicationPublisherId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.ManagedApplicationPublisherId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplicationPublisherId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplicationPublisherId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.ManagedApplicationPublisherId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplicationPublisherId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ManagedApplicationPublisherId = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.Name { get => this._name; set { {_name = value;} } } @@ -84,7 +84,7 @@ public partial class ProviderDescription : Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderProperties Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ProviderProperties()); set { {_property = value;} } } /// Internal Acessors for ProviderType - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.ProviderType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ProviderType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ProviderType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderDescriptionInternal.ProviderType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ProviderType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal)Property).ProviderType = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/Quantum/Quantum.Autorest/generated/api/Models/ProviderProperties.cs b/generated/Quantum/Quantum.Autorest/generated/api/Models/ProviderProperties.cs index bd523728f5ef..72063c5f086b 100644 --- a/generated/Quantum/Quantum.Autorest/generated/api/Models/ProviderProperties.cs +++ b/generated/Quantum/Quantum.Autorest/generated/api/Models/ProviderProperties.cs @@ -68,10 +68,10 @@ public partial class ProviderProperties : Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAad Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.Aad { get => (this._aad = this._aad ?? new Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ProviderPropertiesAad()); set { {_aad = value;} } } /// Internal Acessors for AadApplicationId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.AadApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAadInternal)Aad).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAadInternal)Aad).ApplicationId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.AadApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAadInternal)Aad).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAadInternal)Aad).ApplicationId = value ?? null; } /// Internal Acessors for AadTenantId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.AadTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAadInternal)Aad).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAadInternal)Aad).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.AadTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAadInternal)Aad).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesAadInternal)Aad).TenantId = value ?? null; } /// Internal Acessors for Company string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.Company { get => this._company; set { {_company = value;} } } @@ -86,10 +86,10 @@ public partial class ProviderProperties : Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplication Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.ManagedApplication { get => (this._managedApplication = this._managedApplication ?? new Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ProviderPropertiesManagedApplication()); set { {_managedApplication = value;} } } /// Internal Acessors for ManagedApplicationOfferId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.ManagedApplicationOfferId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplicationInternal)ManagedApplication).OfferId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplicationInternal)ManagedApplication).OfferId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.ManagedApplicationOfferId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplicationInternal)ManagedApplication).OfferId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplicationInternal)ManagedApplication).OfferId = value ?? null; } /// Internal Acessors for ManagedApplicationPublisherId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.ManagedApplicationPublisherId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplicationInternal)ManagedApplication).PublisherId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplicationInternal)ManagedApplication).PublisherId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.ManagedApplicationPublisherId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplicationInternal)ManagedApplication).PublisherId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesManagedApplicationInternal)ManagedApplication).PublisherId = value ?? null; } /// Internal Acessors for ProviderType string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProviderPropertiesInternal.ProviderType { get => this._providerType; set { {_providerType = value;} } } diff --git a/generated/Quantum/Quantum.Autorest/generated/api/Models/QuantumWorkspace.cs b/generated/Quantum/Quantum.Autorest/generated/api/Models/QuantumWorkspace.cs index c85d1b791480..d141fc6a2537 100644 --- a/generated/Quantum/Quantum.Autorest/generated/api/Models/QuantumWorkspace.cs +++ b/generated/Quantum/Quantum.Autorest/generated/api/Models/QuantumWorkspace.cs @@ -49,40 +49,58 @@ public partial class QuantumWorkspace : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for EndpointUri - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.EndpointUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).EndpointUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).EndpointUri = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.EndpointUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).EndpointUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).EndpointUri = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceIdentity Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.QuantumWorkspaceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourceProperties Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.WorkspaceResourceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Usable - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.Usable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).Usable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).Usable = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspaceInternal.Usable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).Usable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IWorkspaceResourcePropertiesInternal)Property).Usable = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inherited)] @@ -120,27 +138,27 @@ public partial class QuantumWorkspace : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inherited)] diff --git a/generated/Quantum/Quantum.Autorest/generated/api/Models/TrackedResource.cs b/generated/Quantum/Quantum.Autorest/generated/api/Models/TrackedResource.cs index d49deb83b9a4..67b108093994 100644 --- a/generated/Quantum/Quantum.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Quantum/Quantum.Autorest/generated/api/Models/TrackedResource.cs @@ -34,13 +34,13 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Origin(Microsoft.Azure.PowerShell.Cmdlets.Quantum.PropertyOrigin.Inherited)] @@ -84,7 +84,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Quantum.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateExpanded.cs b/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateExpanded.cs index 495b3e3690e8..76ddb4548a75 100644 --- a/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateExpanded.cs +++ b/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzQuantumWorkspace_CreateExpanded : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The resource proxy definition object for quantum workspace. private Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspace _quantumWorkspaceBody = new Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.QuantumWorkspace(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Quantum.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Quantum.ParameterCategory.Runtime)] @@ -300,11 +291,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Quantum.Cmdlets.NewAzQuantumWorkspace_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Quantum.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -620,24 +606,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspace var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateViaJsonFilePath.cs b/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateViaJsonFilePath.cs index dea26ec639be..16b63e9b15f2 100644 --- a/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateViaJsonFilePath.cs +++ b/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzQuantumWorkspace_CreateViaJsonFilePath : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Quantum.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Quantum.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Quantum.Cmdlets.NewAzQuantumWorkspace_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Quantum.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,24 +569,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspace var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateViaJsonString.cs b/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateViaJsonString.cs index 98fd8ebf605e..4bbc5f137d05 100644 --- a/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateViaJsonString.cs +++ b/generated/Quantum/Quantum.Autorest/generated/cmdlets/NewAzQuantumWorkspace_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzQuantumWorkspace_CreateViaJsonString : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Quantum.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Quantum.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Quantum.Cmdlets.NewAzQuantumWorkspace_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Quantum.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,24 +567,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspace var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Quantum/Quantum.Autorest/generated/cmdlets/RemoveAzQuantumWorkspace_Delete.cs b/generated/Quantum/Quantum.Autorest/generated/cmdlets/RemoveAzQuantumWorkspace_Delete.cs index 73845af20297..2b6b3205b730 100644 --- a/generated/Quantum/Quantum.Autorest/generated/cmdlets/RemoveAzQuantumWorkspace_Delete.cs +++ b/generated/Quantum/Quantum.Autorest/generated/cmdlets/RemoveAzQuantumWorkspace_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzQuantumWorkspace_Delete : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Quantum.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Quantum.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Quantum.Cmdlets.RemoveAzQuantumWorkspa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Quantum.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Quantum/Quantum.Autorest/generated/cmdlets/RemoveAzQuantumWorkspace_DeleteViaIdentity.cs b/generated/Quantum/Quantum.Autorest/generated/cmdlets/RemoveAzQuantumWorkspace_DeleteViaIdentity.cs index 73f8c862f645..3fbb31d2a2b7 100644 --- a/generated/Quantum/Quantum.Autorest/generated/cmdlets/RemoveAzQuantumWorkspace_DeleteViaIdentity.cs +++ b/generated/Quantum/Quantum.Autorest/generated/cmdlets/RemoveAzQuantumWorkspace_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzQuantumWorkspace_DeleteViaIdentity : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Quantum.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Quantum.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Quantum.Cmdlets.RemoveAzQuantumWorkspa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Quantum.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index aa7f5cbd1dad..802bf3cadd4f 100644 --- a/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 233c90cfe2e9..c18ef09d4d68 100644 --- a/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index d623750ecd60..3fb4e506ea5d 100644 --- a/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Quantum/Quantum.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Quantum/Quantum.Autorest/generated/runtime/Context.cs b/generated/Quantum/Quantum.Autorest/generated/runtime/Context.cs index 96c2b1d02636..37fc0118be15 100644 --- a/generated/Quantum/Quantum.Autorest/generated/runtime/Context.cs +++ b/generated/Quantum/Quantum.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quantum.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Quantum/Quantum.Autorest/generated/runtime/MessageAttribute.cs b/generated/Quantum/Quantum.Autorest/generated/runtime/MessageAttribute.cs index 36c68f96ca5f..0d3aad95241e 100644 --- a/generated/Quantum/Quantum.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Quantum/Quantum.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quantum.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Quantum" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Quantum/Quantum.Autorest/generated/runtime/Properties/Resources.resx b/generated/Quantum/Quantum.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Quantum/Quantum.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Quantum/Quantum.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/Quota/Quota.Autorest/Properties/AssemblyInfo.cs b/generated/Quota/Quota.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index 6ca484734fe6..000000000000 --- a/generated/Quota/Quota.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 - Quota")] -[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("2206f3ac-058f-4e4a-827c-8fcf730580f8")] -[assembly: AssemblyVersion("0.1.3")] -[assembly: AssemblyFileVersion("0.1.3")] diff --git a/generated/Quota/Quota.Autorest/exports/Get-AzQuota.ps1 b/generated/Quota/Quota.Autorest/exports/Get-AzQuota.ps1 index 10d607774636..e5cde678f799 100644 --- a/generated/Quota/Quota.Autorest/exports/Get-AzQuota.ps1 +++ b/generated/Quota/Quota.Autorest/exports/Get-AzQuota.ps1 @@ -130,6 +130,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -159,6 +167,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Quota/Quota.Autorest/exports/Get-AzQuotaOperation.ps1 b/generated/Quota/Quota.Autorest/exports/Get-AzQuotaOperation.ps1 index a38d69130ddf..143f0faf2b93 100644 --- a/generated/Quota/Quota.Autorest/exports/Get-AzQuotaOperation.ps1 +++ b/generated/Quota/Quota.Autorest/exports/Get-AzQuotaOperation.ps1 @@ -88,6 +88,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -115,6 +123,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Quota/Quota.Autorest/exports/Get-AzQuotaRequestStatus.ps1 b/generated/Quota/Quota.Autorest/exports/Get-AzQuotaRequestStatus.ps1 index 1d1092da804f..4b50e48fc7dc 100644 --- a/generated/Quota/Quota.Autorest/exports/Get-AzQuotaRequestStatus.ps1 +++ b/generated/Quota/Quota.Autorest/exports/Get-AzQuotaRequestStatus.ps1 @@ -131,6 +131,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -159,6 +167,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Quota/Quota.Autorest/exports/Get-AzQuotaUsage.ps1 b/generated/Quota/Quota.Autorest/exports/Get-AzQuotaUsage.ps1 index 2222b4910c55..023b638fb1b2 100644 --- a/generated/Quota/Quota.Autorest/exports/Get-AzQuotaUsage.ps1 +++ b/generated/Quota/Quota.Autorest/exports/Get-AzQuotaUsage.ps1 @@ -109,6 +109,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -137,6 +145,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Quota/Quota.Autorest/exports/New-AzQuota.ps1 b/generated/Quota/Quota.Autorest/exports/New-AzQuota.ps1 index 36f702512b12..bd0e115f2ab5 100644 --- a/generated/Quota/Quota.Autorest/exports/New-AzQuota.ps1 +++ b/generated/Quota/Quota.Autorest/exports/New-AzQuota.ps1 @@ -17,17 +17,17 @@ <# .Synopsis Create the quota limit for the specified resource with the requested value. -To update the quota, follow these steps:\n1. +To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. -Use this PUT operation to update the quota limit. +Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request. .Description Create the quota limit for the specified resource with the requested value. -To update the quota, follow these steps:\n1. +To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. -Use this PUT operation to update the quota limit. +Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request. .Example $quota = Get-AzQuota -Scope "subscriptions/{subId}/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" @@ -187,6 +187,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -217,6 +225,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Quota/Quota.Autorest/exports/New-AzQuotaLimitObject.ps1 b/generated/Quota/Quota.Autorest/exports/New-AzQuotaLimitObject.ps1 index c7f5f3062a55..c87f2207614e 100644 --- a/generated/Quota/Quota.Autorest/exports/New-AzQuotaLimitObject.ps1 +++ b/generated/Quota/Quota.Autorest/exports/New-AzQuotaLimitObject.ps1 @@ -53,6 +53,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -80,6 +83,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Quota/Quota.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Quota/Quota.Autorest/exports/ProxyCmdletDefinitions.ps1 index 3f5ecbb26373..4f5898ddfe8f 100644 --- a/generated/Quota/Quota.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Quota/Quota.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -88,6 +88,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -115,6 +123,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -275,6 +286,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -303,6 +322,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -441,6 +463,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -469,6 +499,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -628,6 +661,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -657,6 +698,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -703,17 +747,17 @@ end { <# .Synopsis Create the quota limit for the specified resource with the requested value. -To update the quota, follow these steps:\n1. +To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. -Use this PUT operation to update the quota limit. +Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request. .Description Create the quota limit for the specified resource with the requested value. -To update the quota, follow these steps:\n1. +To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. -Use this PUT operation to update the quota limit. +Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request. .Example $quota = Get-AzQuota -Scope "subscriptions/{subId}/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" @@ -873,6 +917,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -903,6 +955,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1119,6 +1174,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1149,6 +1212,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1231,6 +1297,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1258,6 +1327,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Quota/Quota.Autorest/exports/Update-AzQuota.ps1 b/generated/Quota/Quota.Autorest/exports/Update-AzQuota.ps1 index b8dfde40d91d..f0e91c40f5c8 100644 --- a/generated/Quota/Quota.Autorest/exports/Update-AzQuota.ps1 +++ b/generated/Quota/Quota.Autorest/exports/Update-AzQuota.ps1 @@ -187,6 +187,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -217,6 +225,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/CurrentQuotaLimitBase.cs b/generated/Quota/Quota.Autorest/generated/api/Models/CurrentQuotaLimitBase.cs index 7ea5fb8a7234..d5bc94e6a001 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/CurrentQuotaLimitBase.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/CurrentQuotaLimitBase.cs @@ -48,28 +48,28 @@ public partial class CurrentQuotaLimitBase : string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for IsQuotaApplicable - bool? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.IsQuotaApplicable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).IsQuotaApplicable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).IsQuotaApplicable = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.IsQuotaApplicable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).IsQuotaApplicable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).IsQuotaApplicable = value ?? default(bool); } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).NameLocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).NameLocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).NameLocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).NameLocalizedValue = value ?? null; } /// Internal Acessors for PropertiesName - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).Name = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).Name = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaProperties Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.QuotaProperties()); set { {_property = value;} } } /// Internal Acessors for QuotaPeriod - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.QuotaPeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).QuotaPeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).QuotaPeriod = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.QuotaPeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).QuotaPeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).QuotaPeriod = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.Type { get => this._type; set { {_type = value;} } } /// Internal Acessors for Unit - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.Unit { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).Unit; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).Unit = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBaseInternal.Unit { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).Unit; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal)Property).Unit = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/CurrentUsagesBase.PowerShell.cs b/generated/Quota/Quota.Autorest/generated/api/Models/CurrentUsagesBase.PowerShell.cs index bb58d42b0cdc..11a976c2453b 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/CurrentUsagesBase.PowerShell.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/CurrentUsagesBase.PowerShell.cs @@ -126,7 +126,7 @@ internal CurrentUsagesBase(global::System.Collections.IDictionary content) } if (content.Contains("UsageValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal)this).UsageValue = (int) content.GetValueForProperty("UsageValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal)this).UsageValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal)this).UsageValue = (int?) content.GetValueForProperty("UsageValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal)this).UsageValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("UsageUsagesType")) { @@ -207,7 +207,7 @@ internal CurrentUsagesBase(global::System.Management.Automation.PSObject content } if (content.Contains("UsageValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal)this).UsageValue = (int) content.GetValueForProperty("UsageValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal)this).UsageValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal)this).UsageValue = (int?) content.GetValueForProperty("UsageValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal)this).UsageValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("UsageUsagesType")) { diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/CurrentUsagesBase.cs b/generated/Quota/Quota.Autorest/generated/api/Models/CurrentUsagesBase.cs index 11425837fef1..96292f467005 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/CurrentUsagesBase.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/CurrentUsagesBase.cs @@ -43,31 +43,31 @@ public partial class CurrentUsagesBase : string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for IsQuotaApplicable - bool? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.IsQuotaApplicable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).IsQuotaApplicable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).IsQuotaApplicable = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.IsQuotaApplicable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).IsQuotaApplicable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).IsQuotaApplicable = value ?? default(bool); } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).NameLocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).NameLocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).NameLocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).NameLocalizedValue = value ?? null; } /// Internal Acessors for PropertiesName - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Name = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Name = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesProperties Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.UsagesProperties()); set { {_property = value;} } } /// Internal Acessors for QuotaPeriod - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.QuotaPeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).QuotaPeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).QuotaPeriod = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.QuotaPeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).QuotaPeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).QuotaPeriod = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.Type { get => this._type; set { {_type = value;} } } /// Internal Acessors for Unit - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.Unit { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Unit; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Unit = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.Unit { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Unit; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Unit = value ?? null; } /// Internal Acessors for Usage - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesObject Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.Usage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Usage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Usage = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesObject Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentUsagesBaseInternal.Usage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Usage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)Property).Usage = value ?? null /* model class */; } /// Backing field for property. private string _name; diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/ExceptionResponse.cs b/generated/Quota/Quota.Autorest/generated/api/Models/ExceptionResponse.cs index ce5ad7570450..cd26136c4d4d 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/ExceptionResponse.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/ExceptionResponse.cs @@ -33,7 +33,7 @@ public partial class ExceptionResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IExceptionResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IExceptionResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceError Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IExceptionResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ServiceError()); set { {_error = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/LimitObject.cs b/generated/Quota/Quota.Autorest/generated/api/Models/LimitObject.cs index aa5530cbd855..c8f63d351106 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/LimitObject.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/LimitObject.cs @@ -26,7 +26,7 @@ public partial class LimitObject : public string LimitType { get => this._limitType; set => this._limitType = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)__limitJsonObject).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)__limitJsonObject).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)__limitJsonObject).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)__limitJsonObject).Type = value ; } /// The limit object type. [Microsoft.Azure.PowerShell.Cmdlets.Quota.Constant] diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaProperties.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaProperties.cs index f09e211b9593..0110e93829c8 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaProperties.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaProperties.cs @@ -34,7 +34,7 @@ public partial class QuotaProperties : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ResourceName()); set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value ?? null; } /// Internal Acessors for QuotaPeriod string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaPropertiesInternal.QuotaPeriod { get => this._quotaPeriod; set { {_quotaPeriod = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestDetails.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestDetails.cs index a7f2429a410e..cf3cdfcfff32 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestDetails.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestDetails.cs @@ -37,19 +37,19 @@ public partial class QuotaRequestDetails : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Code = value ?? null; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Error = value ?? null /* model class */; } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ErrorMessage = value ?? null; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Name { get => this._name; set { {_name = value;} } } @@ -58,10 +58,10 @@ public partial class QuotaRequestDetails : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.QuotaRequestProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for RequestSubmitTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.RequestSubmitTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).RequestSubmitTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).RequestSubmitTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.RequestSubmitTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).RequestSubmitTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).RequestSubmitTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestDetailsInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceProperties.PowerShell.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceProperties.PowerShell.cs index 39a1d9b1347c..231d1ede66d2 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceProperties.PowerShell.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceProperties.PowerShell.cs @@ -165,7 +165,7 @@ internal QuotaRequestOneResourceProperties(global::System.Collections.IDictionar } if (content.Contains("LimitValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)this).LimitValue = (int) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)this).LimitValue = (int?) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitType")) { @@ -258,7 +258,7 @@ internal QuotaRequestOneResourceProperties(global::System.Management.Automation. } if (content.Contains("LimitValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)this).LimitValue = (int) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)this).LimitValue = (int?) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitType")) { diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceProperties.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceProperties.cs index 61c4a18d02c0..87e14e41c72c 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceProperties.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceProperties.cs @@ -69,7 +69,7 @@ public partial class QuotaRequestOneResourceProperties : public string Message { get => this._message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for CurrentValue int? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.CurrentValue { get => this._currentValue; set { {_currentValue = value;} } } @@ -78,7 +78,7 @@ public partial class QuotaRequestOneResourceProperties : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ServiceErrorDetail()); set { {_error = value;} } } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for IsQuotaApplicable bool? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.IsQuotaApplicable { get => this._isQuotaApplicable; set { {_isQuotaApplicable = value;} } } @@ -87,7 +87,7 @@ public partial class QuotaRequestOneResourceProperties : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitObject Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.Limit { get => (this._limit = this._limit ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.LimitObject()); set { {_limit = value;} } } /// Internal Acessors for LimitObjectType - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.LimitObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)Limit).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)Limit).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.LimitObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)Limit).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)Limit).Type = value ?? null; } /// Internal Acessors for Message string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.Message { get => this._message; set { {_message = value;} } } @@ -96,7 +96,7 @@ public partial class QuotaRequestOneResourceProperties : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ResourceName()); set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value ?? null; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceSubmitResponse.PowerShell.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceSubmitResponse.PowerShell.cs index 0bc90ad652b6..987b70601db4 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceSubmitResponse.PowerShell.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceSubmitResponse.PowerShell.cs @@ -182,7 +182,7 @@ internal QuotaRequestOneResourceSubmitResponse(global::System.Collections.IDicti } if (content.Contains("LimitValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal)this).LimitValue = (int) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal)this).LimitValue = (int?) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitType")) { @@ -291,7 +291,7 @@ internal QuotaRequestOneResourceSubmitResponse(global::System.Management.Automat } if (content.Contains("LimitValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal)this).LimitValue = (int) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal)this).LimitValue = (int?) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitType")) { diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceSubmitResponse.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceSubmitResponse.cs index 9f70b973a30e..56c5fe4ce932 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceSubmitResponse.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestOneResourceSubmitResponse.cs @@ -57,52 +57,52 @@ public partial class QuotaRequestOneResourceSubmitResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Code = value ?? null; } /// Internal Acessors for CurrentValue - int? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.CurrentValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).CurrentValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).CurrentValue = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.CurrentValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).CurrentValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).CurrentValue = value ?? default(int); } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Error = value ?? null /* model class */; } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).ErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).ErrorMessage = value ?? null; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for IsQuotaApplicable - bool? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.IsQuotaApplicable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).IsQuotaApplicable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).IsQuotaApplicable = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.IsQuotaApplicable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).IsQuotaApplicable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).IsQuotaApplicable = value ?? default(bool); } /// Internal Acessors for Limit - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitObject Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Limit { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Limit; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Limit = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitObject Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Limit { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Limit; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Limit = value ?? null /* model class */; } /// Internal Acessors for LimitObjectType - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.LimitObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).LimitObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).LimitObjectType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.LimitObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).LimitObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).LimitObjectType = value ?? null; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Message = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).NameLocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).NameLocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).NameLocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).NameLocalizedValue = value ?? null; } /// Internal Acessors for PropertiesName - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Name = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).Name = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceProperties Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.QuotaRequestOneResourceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for QuotaPeriod - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.QuotaPeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).QuotaPeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).QuotaPeriod = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.QuotaPeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).QuotaPeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).QuotaPeriod = value ?? null; } /// Internal Acessors for RequestSubmitTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.RequestSubmitTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).RequestSubmitTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).RequestSubmitTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.RequestSubmitTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).RequestSubmitTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourcePropertiesInternal)Property).RequestSubmitTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestOneResourceSubmitResponseInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestProperties.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestProperties.cs index 8477fa1ba6cc..b37f2c0241a2 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestProperties.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestProperties.cs @@ -36,13 +36,13 @@ public partial class QuotaRequestProperties : public string Message { get => this._message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ServiceErrorDetail()); set { {_error = value;} } } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Message string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal.Message { get => this._message; set { {_message = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestStatusDetails.PowerShell.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestStatusDetails.PowerShell.cs index 491367f19ccb..fdca3e444c6c 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestStatusDetails.PowerShell.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestStatusDetails.PowerShell.cs @@ -147,7 +147,7 @@ internal QuotaRequestStatusDetails(global::System.Collections.IDictionary conten } if (content.Contains("LimitValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)this).LimitValue = (int) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)this).LimitValue = (int?) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitType")) { @@ -216,7 +216,7 @@ internal QuotaRequestStatusDetails(global::System.Management.Automation.PSObject } if (content.Contains("LimitValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)this).LimitValue = (int) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)this).LimitValue = (int?) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitType")) { diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestStatusDetails.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestStatusDetails.cs index 6b8ff790a641..7e81a4dc7079 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestStatusDetails.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestStatusDetails.cs @@ -43,7 +43,7 @@ public partial class QuotaRequestStatusDetails : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitObject Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal.Limit { get => (this._limit = this._limit ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.LimitObject()); set { {_limit = value;} } } /// Internal Acessors for LimitObjectType - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal.LimitObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)Limit).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)Limit).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal.LimitObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)Limit).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitJsonObjectInternal)Limit).Type = value ?? null; } /// Internal Acessors for Message string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal.Message { get => this._message; set { {_message = value;} } } @@ -52,7 +52,7 @@ public partial class QuotaRequestStatusDetails : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ResourceName()); set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value ?? null; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse.cs index 87fb32e95e1e..e2891f140616 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse.cs @@ -33,19 +33,19 @@ public partial class QuotaRequestSubmitResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Code = value ?? null; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IServiceErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Error = value ?? null /* model class */; } /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ErrorMessage = value ?? null; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).Message = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Name { get => this._name; set { {_name = value;} } } @@ -54,10 +54,10 @@ public partial class QuotaRequestSubmitResponse : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.QuotaRequestProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for RequestSubmitTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.RequestSubmitTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).RequestSubmitTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).RequestSubmitTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.RequestSubmitTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).RequestSubmitTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestPropertiesInternal)Property).RequestSubmitTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponseInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse202.PowerShell.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse202.PowerShell.cs index 417d87acb173..427611356ead 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse202.PowerShell.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse202.PowerShell.cs @@ -163,7 +163,7 @@ internal QuotaRequestSubmitResponse202(global::System.Collections.IDictionary co } if (content.Contains("LimitValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal)this).LimitValue = (int) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal)this).LimitValue = (int?) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitType")) { @@ -248,7 +248,7 @@ internal QuotaRequestSubmitResponse202(global::System.Management.Automation.PSOb } if (content.Contains("LimitValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal)this).LimitValue = (int) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal)this).LimitValue = (int?) content.GetValueForProperty("LimitValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal)this).LimitValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("LimitType")) { diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse202.cs b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse202.cs index 3ea15f6fca81..1dca9fdd8326 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse202.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/QuotaRequestSubmitResponse202.cs @@ -47,31 +47,31 @@ public partial class QuotaRequestSubmitResponse202 : string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Limit - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitObject Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.Limit { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Limit; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Limit = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ILimitObject Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.Limit { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Limit; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Limit = value ?? null /* model class */; } /// Internal Acessors for LimitObjectType - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.LimitObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).LimitObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).LimitObjectType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.LimitObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).LimitObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).LimitObjectType = value ?? null; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Message = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).NameLocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).NameLocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).NameLocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).NameLocalizedValue = value ?? null; } /// Internal Acessors for PropertiesName - Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Name = value; } + Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).Name = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetails Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.QuotaRequestStatusDetails()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for QuotaPeriod - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.QuotaPeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).QuotaPeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).QuotaPeriod = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.QuotaPeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).QuotaPeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestStatusDetailsInternal)Property).QuotaPeriod = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaRequestSubmitResponse202Internal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/SubRequest.cs b/generated/Quota/Quota.Autorest/generated/api/Models/SubRequest.cs index 106e592e3304..3eaaba595129 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/SubRequest.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/SubRequest.cs @@ -44,7 +44,7 @@ public partial class SubRequest : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ISubRequestInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ResourceName()); set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ISubRequestInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ISubRequestInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value ?? null; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ISubRequestInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/UsagesProperties.PowerShell.cs b/generated/Quota/Quota.Autorest/generated/api/Models/UsagesProperties.PowerShell.cs index 4b04466746db..07d39b3bf8b8 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/UsagesProperties.PowerShell.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/UsagesProperties.PowerShell.cs @@ -156,7 +156,7 @@ internal UsagesProperties(global::System.Collections.IDictionary content) } if (content.Contains("UsageValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)this).UsageValue = (int) content.GetValueForProperty("UsageValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)this).UsageValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)this).UsageValue = (int?) content.GetValueForProperty("UsageValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)this).UsageValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("UsageUsagesType")) { @@ -217,7 +217,7 @@ internal UsagesProperties(global::System.Management.Automation.PSObject content) } if (content.Contains("UsageValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)this).UsageValue = (int) content.GetValueForProperty("UsageValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)this).UsageValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)this).UsageValue = (int?) content.GetValueForProperty("UsageValue",((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal)this).UsageValue, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("UsageUsagesType")) { diff --git a/generated/Quota/Quota.Autorest/generated/api/Models/UsagesProperties.cs b/generated/Quota/Quota.Autorest/generated/api/Models/UsagesProperties.cs index d3d5ec8c1e44..c88c93ce3e89 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Models/UsagesProperties.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Models/UsagesProperties.cs @@ -27,7 +27,7 @@ public partial class UsagesProperties : Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceName Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ResourceName()); set { {_name = value;} } } /// Internal Acessors for NameLocalizedValue - string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal.NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IResourceNameInternal)Name).LocalizedValue = value ?? null; } /// Internal Acessors for QuotaPeriod string Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IUsagesPropertiesInternal.QuotaPeriod { get => this._quotaPeriod; set { {_quotaPeriod = value;} } } diff --git a/generated/Quota/Quota.Autorest/generated/api/Quota.cs b/generated/Quota/Quota.Autorest/generated/api/Quota.cs index faad68c87956..c519b4baa024 100644 --- a/generated/Quota/Quota.Autorest/generated/api/Quota.cs +++ b/generated/Quota/Quota.Autorest/generated/api/Quota.cs @@ -15,7 +15,7 @@ public partial class Quota { /// - /// Update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: + /// update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: /// 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -72,7 +72,7 @@ public partial class Quota } /// - /// Update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: + /// update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: /// 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -134,7 +134,7 @@ public partial class Quota } /// - /// Update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: + /// update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: /// 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -194,7 +194,7 @@ public partial class Quota } /// - /// Update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: + /// update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: /// 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -250,7 +250,7 @@ public partial class Quota } /// - /// Update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: + /// update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: /// 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -304,7 +304,7 @@ public partial class Quota } /// - /// Update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: + /// update the quota limit for the specified resource with the requested value. To update the quota, follow these steps: /// 1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -373,16 +373,17 @@ public partial class Quota global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: original-uri var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-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 ) { // delay before making the next polling request @@ -395,7 +396,10 @@ public partial class Quota 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; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Quota.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 @@ -523,16 +527,17 @@ public partial class Quota global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.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: original-uri var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-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 ) { // delay before making the next polling request @@ -545,7 +550,10 @@ public partial class Quota 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; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Quota.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 @@ -1005,7 +1013,7 @@ public partial class Quota /// /// Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can - /// be leveraged to submit requests to update a quota. + /// be leveraged to submit requests to list a quota. /// /// The target Azure resource URI. For example, `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`. /// This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added after `/quotas`, then @@ -1048,7 +1056,7 @@ public partial class Quota /// /// Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can - /// be leveraged to submit requests to update a quota. + /// be leveraged to submit requests to list a quota. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -1099,7 +1107,7 @@ public partial class Quota /// /// Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can - /// be leveraged to submit requests to update a quota. + /// be leveraged to submit requests to list a quota. /// /// /// an instance that will receive events. @@ -1148,7 +1156,7 @@ public partial class Quota /// /// Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can - /// be leveraged to submit requests to update a quota. + /// be leveraged to submit requests to list a quota. /// /// The target Azure resource URI. For example, `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/`. /// This is the target Azure resource URI for the List GET operation. If a `{resourceName}` is added after `/quotas`, then @@ -2317,7 +2325,7 @@ public partial class Quota } /// - /// Update the quota limit for a specific resource to the specified value: + /// update the quota limit for a specific resource to the specified value: /// 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -2374,7 +2382,7 @@ public partial class Quota } /// - /// Update the quota limit for a specific resource to the specified value: + /// update the quota limit for a specific resource to the specified value: /// 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -2436,7 +2444,7 @@ public partial class Quota } /// - /// Update the quota limit for a specific resource to the specified value: + /// update the quota limit for a specific resource to the specified value: /// 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -2496,7 +2504,7 @@ public partial class Quota } /// - /// Update the quota limit for a specific resource to the specified value: + /// update the quota limit for a specific resource to the specified value: /// 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -2552,7 +2560,7 @@ public partial class Quota } /// - /// Update the quota limit for a specific resource to the specified value: + /// update the quota limit for a specific resource to the specified value: /// 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -2606,7 +2614,7 @@ public partial class Quota } /// - /// Update the quota limit for a specific resource to the specified value: + /// update the quota limit for a specific resource to the specified value: /// 1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670). /// 2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of @@ -2675,16 +2683,17 @@ public partial class Quota global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: original-uri var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-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 ) { // delay before making the next polling request @@ -2697,7 +2706,10 @@ public partial class Quota 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; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Quota.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 @@ -2825,16 +2837,17 @@ public partial class Quota global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Quota.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: original-uri var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-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 ) { // delay before making the next polling request @@ -2847,7 +2860,10 @@ public partial class Quota 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; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Quota.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 diff --git a/generated/Quota/Quota.Autorest/generated/cmdlets/GetAzQuota_List.cs b/generated/Quota/Quota.Autorest/generated/cmdlets/GetAzQuota_List.cs index cf32a02f51ec..5c1afffcb0a3 100644 --- a/generated/Quota/Quota.Autorest/generated/cmdlets/GetAzQuota_List.cs +++ b/generated/Quota/Quota.Autorest/generated/cmdlets/GetAzQuota_List.cs @@ -12,14 +12,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets /// /// Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can - /// be leveraged to submit requests to update a quota. + /// be leveraged to submit requests to list a quota. /// /// /// [OpenAPI] List=>GET:"/{scope}/providers/Microsoft.Quota/quotas" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzQuota_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can be leveraged to submit requests to update a quota.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can be leveraged to submit requests to list a quota.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.HttpPath(Path = "/{scope}/providers/Microsoft.Quota/quotas", ApiVersion = "2023-02-01")] public partial class GetAzQuota_List : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateExpanded.cs b/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateExpanded.cs index 015546cac7f0..4da8474345be 100644 --- a/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateExpanded.cs +++ b/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateExpanded.cs @@ -11,10 +11,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets using System; /// - /// Create the quota limit for the specified resource with the requested value. To update the quota, follow these steps:\n1. + /// create the quota limit for the specified resource with the requested value. To create the quota, follow these steps:\n1. /// Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. - /// Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the + /// Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the /// request. /// /// @@ -22,7 +22,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzQuota_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Create the quota limit for the specified resource with the requested value. To update the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"create the quota limit for the specified resource with the requested value. To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.HttpPath(Path = "/{scope}/providers/Microsoft.Quota/quotas/{resourceName}", ApiVersion = "2023-02-01")] public partial class NewAzQuota_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaIdentityExpanded.cs b/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaIdentityExpanded.cs index 3a91f185dd8f..3f4f1682d311 100644 --- a/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaIdentityExpanded.cs +++ b/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaIdentityExpanded.cs @@ -11,10 +11,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets using System; /// - /// Create the quota limit for the specified resource with the requested value. To update the quota, follow these steps:\n1. + /// create the quota limit for the specified resource with the requested value. To create the quota, follow these steps:\n1. /// Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. - /// Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the + /// Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the /// request. /// /// @@ -22,7 +22,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzQuota_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Create the quota limit for the specified resource with the requested value. To update the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"create the quota limit for the specified resource with the requested value. To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.HttpPath(Path = "/{scope}/providers/Microsoft.Quota/quotas/{resourceName}", ApiVersion = "2023-02-01")] public partial class NewAzQuota_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaJsonFilePath.cs b/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaJsonFilePath.cs index c4b3036e0b55..75d0fb711b95 100644 --- a/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaJsonFilePath.cs +++ b/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaJsonFilePath.cs @@ -11,10 +11,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets using System; /// - /// Create the quota limit for the specified resource with the requested value. To update the quota, follow these steps:\n1. + /// create the quota limit for the specified resource with the requested value. To create the quota, follow these steps:\n1. /// Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. - /// Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the + /// Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the /// request. /// /// @@ -22,7 +22,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzQuota_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Create the quota limit for the specified resource with the requested value. To update the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"create the quota limit for the specified resource with the requested value. To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.HttpPath(Path = "/{scope}/providers/Microsoft.Quota/quotas/{resourceName}", ApiVersion = "2023-02-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.NotSuggestDefaultParameterSet] diff --git a/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaJsonString.cs b/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaJsonString.cs index 1edd18726e20..a8c408e544eb 100644 --- a/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaJsonString.cs +++ b/generated/Quota/Quota.Autorest/generated/cmdlets/NewAzQuota_CreateViaJsonString.cs @@ -11,10 +11,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets using System; /// - /// Create the quota limit for the specified resource with the requested value. To update the quota, follow these steps:\n1. + /// create the quota limit for the specified resource with the requested value. To create the quota, follow these steps:\n1. /// Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate /// the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. - /// Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the + /// Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the /// request. /// /// @@ -22,7 +22,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzQuota_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Create the quota limit for the specified resource with the requested value. To update the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"create the quota limit for the specified resource with the requested value. To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.HttpPath(Path = "/{scope}/providers/Microsoft.Quota/quotas/{resourceName}", ApiVersion = "2023-02-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.NotSuggestDefaultParameterSet] diff --git a/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateExpanded.cs b/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateExpanded.cs index 0be5e2ecf4f4..f8ee7efb01d4 100644 --- a/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateExpanded.cs +++ b/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets using System; /// - /// Update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations + /// update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations /// to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed /// in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. /// Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the @@ -22,7 +22,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzQuota_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.HttpPath(Path = "/{scope}/providers/Microsoft.Quota/quotas/{resourceName}", ApiVersion = "2023-02-01")] public partial class UpdateAzQuota_UpdateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaIdentityExpanded.cs b/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaIdentityExpanded.cs index f02d2da9f8e7..fdcaabc63188 100644 --- a/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaIdentityExpanded.cs +++ b/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaIdentityExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets using System; /// - /// Update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations + /// update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations /// to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed /// in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. /// Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the @@ -22,7 +22,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzQuota_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.HttpPath(Path = "/{scope}/providers/Microsoft.Quota/quotas/{resourceName}", ApiVersion = "2023-02-01")] public partial class UpdateAzQuota_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaJsonFilePath.cs b/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaJsonFilePath.cs index 76888e003a77..d287c2290957 100644 --- a/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaJsonFilePath.cs +++ b/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaJsonFilePath.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets using System; /// - /// Update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations + /// update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations /// to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed /// in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. /// Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the @@ -22,7 +22,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzQuota_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.HttpPath(Path = "/{scope}/providers/Microsoft.Quota/quotas/{resourceName}", ApiVersion = "2023-02-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.NotSuggestDefaultParameterSet] diff --git a/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaJsonString.cs b/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaJsonString.cs index 1df39ae5dcf6..c870043f6f9c 100644 --- a/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaJsonString.cs +++ b/generated/Quota/Quota.Autorest/generated/cmdlets/UpdateAzQuota_UpdateViaJsonString.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets using System; /// - /// Update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations + /// update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations /// to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed /// in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. /// Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the @@ -22,7 +22,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzQuota_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.ICurrentQuotaLimitBase))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"Update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Description(@"update the quota limit for a specific resource to the specified value:\n1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.HttpPath(Path = "/{scope}/providers/Microsoft.Quota/quotas/{resourceName}", ApiVersion = "2023-02-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Quota.NotSuggestDefaultParameterSet] diff --git a/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index db6a8d84e991..51cb0d9486f4 100644 --- a/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index d6a203ccf2c2..6b5a79b2aa32 100644 --- a/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}}} +"; + } + return ""; + } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -248,10 +262,16 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{GetTelemetry()} +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) @@ -295,8 +315,6 @@ private string GetDefaultValuesStatements() if ("SubscriptionId".Equals(parameterName)) { sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }}"); sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{"); sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')"); sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{"); diff --git a/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 9db08e891a42..92b50a63378a 100644 --- a/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -49,6 +49,7 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -83,6 +84,7 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -143,6 +145,7 @@ internal class Variant public Parameter[] Parameters { get; } public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public bool IsDoNotExport { get; } public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } @@ -165,6 +168,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); @@ -388,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 6b2338285d59..59d1b0685bcd 100644 --- a/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Quota/Quota.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -22,6 +22,11 @@ public class DoNotExportAttribute : Attribute { } + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Class)] public class InternalExportAttribute : Attribute { diff --git a/generated/Quota/Quota.Autorest/generated/runtime/Context.cs b/generated/Quota/Quota.Autorest/generated/runtime/Context.cs index d8c642bc31e1..4bbc7cba30d4 100644 --- a/generated/Quota/Quota.Autorest/generated/runtime/Context.cs +++ b/generated/Quota/Quota.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Quota/Quota.Autorest/generated/runtime/MessageAttribute.cs b/generated/Quota/Quota.Autorest/generated/runtime/MessageAttribute.cs index b0e3abdaa36a..a390b9142e37 100644 --- a/generated/Quota/Quota.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Quota/Quota.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Quota" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Quota/Quota.Autorest/generated/runtime/Properties/Resources.resx b/generated/Quota/Quota.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Quota/Quota.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Quota/Quota.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/resources/README.md b/generated/Quota/Quota.Autorest/resources/README.md similarity index 100% rename from src/Network/NetworkSecurityPerimeter.Autorest/resources/README.md rename to generated/Quota/Quota.Autorest/resources/README.md diff --git a/generated/Relay/Relay.Autorest/exports/Get-AzRelayAuthorizationRule.ps1 b/generated/Relay/Relay.Autorest/exports/Get-AzRelayAuthorizationRule.ps1 index f0c404dc7c1d..5f2ee9d47454 100644 --- a/generated/Relay/Relay.Autorest/exports/Get-AzRelayAuthorizationRule.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Get-AzRelayAuthorizationRule.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Get-AzRelayHybridConnection.ps1 b/generated/Relay/Relay.Autorest/exports/Get-AzRelayHybridConnection.ps1 index 0c9636d165a9..2bf31afe02ba 100644 --- a/generated/Relay/Relay.Autorest/exports/Get-AzRelayHybridConnection.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Get-AzRelayHybridConnection.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Get-AzRelayKey.ps1 b/generated/Relay/Relay.Autorest/exports/Get-AzRelayKey.ps1 index 0b3cb17bb632..6d07a60a5cb5 100644 --- a/generated/Relay/Relay.Autorest/exports/Get-AzRelayKey.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Get-AzRelayKey.ps1 @@ -135,8 +135,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Get-AzRelayNamespace.ps1 b/generated/Relay/Relay.Autorest/exports/Get-AzRelayNamespace.ps1 index c94dfe7458ad..cef289ae422e 100644 --- a/generated/Relay/Relay.Autorest/exports/Get-AzRelayNamespace.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Get-AzRelayNamespace.ps1 @@ -145,8 +145,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Get-AzRelayNamespaceNetworkRuleSet.ps1 b/generated/Relay/Relay.Autorest/exports/Get-AzRelayNamespaceNetworkRuleSet.ps1 index 93126aa5c1c0..5ff995e484bb 100644 --- a/generated/Relay/Relay.Autorest/exports/Get-AzRelayNamespaceNetworkRuleSet.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Get-AzRelayNamespaceNetworkRuleSet.ps1 @@ -142,8 +142,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Get-AzWcfRelay.ps1 b/generated/Relay/Relay.Autorest/exports/Get-AzWcfRelay.ps1 index 86966212cd9e..7f4933ded311 100644 --- a/generated/Relay/Relay.Autorest/exports/Get-AzWcfRelay.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Get-AzWcfRelay.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/New-AzRelayAuthorizationRule.ps1 b/generated/Relay/Relay.Autorest/exports/New-AzRelayAuthorizationRule.ps1 index 4a3d42b23361..b44e4d51ea59 100644 --- a/generated/Relay/Relay.Autorest/exports/New-AzRelayAuthorizationRule.ps1 +++ b/generated/Relay/Relay.Autorest/exports/New-AzRelayAuthorizationRule.ps1 @@ -166,8 +166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/New-AzRelayHybridConnection.ps1 b/generated/Relay/Relay.Autorest/exports/New-AzRelayHybridConnection.ps1 index bb1e9ff53add..388c67f62cb9 100644 --- a/generated/Relay/Relay.Autorest/exports/New-AzRelayHybridConnection.ps1 +++ b/generated/Relay/Relay.Autorest/exports/New-AzRelayHybridConnection.ps1 @@ -202,8 +202,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/New-AzRelayKey.ps1 b/generated/Relay/Relay.Autorest/exports/New-AzRelayKey.ps1 index 931b1e28e6b5..e4dda5d90ffd 100644 --- a/generated/Relay/Relay.Autorest/exports/New-AzRelayKey.ps1 +++ b/generated/Relay/Relay.Autorest/exports/New-AzRelayKey.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/New-AzRelayNamespace.ps1 b/generated/Relay/Relay.Autorest/exports/New-AzRelayNamespace.ps1 index b150172d4782..ff5e63f79791 100644 --- a/generated/Relay/Relay.Autorest/exports/New-AzRelayNamespace.ps1 +++ b/generated/Relay/Relay.Autorest/exports/New-AzRelayNamespace.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/New-AzWcfRelay.ps1 b/generated/Relay/Relay.Autorest/exports/New-AzWcfRelay.ps1 index c1fbec88ead2..bbaa25395fd2 100644 --- a/generated/Relay/Relay.Autorest/exports/New-AzWcfRelay.ps1 +++ b/generated/Relay/Relay.Autorest/exports/New-AzWcfRelay.ps1 @@ -218,8 +218,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Relay/Relay.Autorest/exports/ProxyCmdletDefinitions.ps1 index 41d645a977e0..e6fe99c5735e 100644 --- a/generated/Relay/Relay.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Relay/Relay.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -376,8 +375,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -590,8 +588,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -806,8 +803,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1054,8 +1050,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1293,8 +1288,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1573,8 +1567,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1820,8 +1813,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2094,8 +2086,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2385,8 +2376,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2628,8 +2618,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2859,8 +2848,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3098,8 +3086,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3291,8 +3278,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3538,8 +3524,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3797,8 +3782,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4166,8 +4150,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4417,8 +4400,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4643,8 +4625,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4888,8 +4869,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5118,8 +5098,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Remove-AzRelayAuthorizationRule.ps1 b/generated/Relay/Relay.Autorest/exports/Remove-AzRelayAuthorizationRule.ps1 index 2b33a5853d2d..353e2c22f045 100644 --- a/generated/Relay/Relay.Autorest/exports/Remove-AzRelayAuthorizationRule.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Remove-AzRelayAuthorizationRule.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Remove-AzRelayHybridConnection.ps1 b/generated/Relay/Relay.Autorest/exports/Remove-AzRelayHybridConnection.ps1 index 7a468dde4646..97fd5315ad27 100644 --- a/generated/Relay/Relay.Autorest/exports/Remove-AzRelayHybridConnection.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Remove-AzRelayHybridConnection.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Remove-AzRelayNamespace.ps1 b/generated/Relay/Relay.Autorest/exports/Remove-AzRelayNamespace.ps1 index fe43f0ac0f75..71c63908ba3b 100644 --- a/generated/Relay/Relay.Autorest/exports/Remove-AzRelayNamespace.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Remove-AzRelayNamespace.ps1 @@ -159,8 +159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Remove-AzWcfRelay.ps1 b/generated/Relay/Relay.Autorest/exports/Remove-AzWcfRelay.ps1 index 4c7059df7f58..d38086886f3c 100644 --- a/generated/Relay/Relay.Autorest/exports/Remove-AzWcfRelay.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Remove-AzWcfRelay.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Set-AzRelayAuthorizationRule.ps1 b/generated/Relay/Relay.Autorest/exports/Set-AzRelayAuthorizationRule.ps1 index e8292b35e2c2..e2945c2ee9ba 100644 --- a/generated/Relay/Relay.Autorest/exports/Set-AzRelayAuthorizationRule.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Set-AzRelayAuthorizationRule.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Set-AzRelayHybridConnection.ps1 b/generated/Relay/Relay.Autorest/exports/Set-AzRelayHybridConnection.ps1 index a7bb78a4161d..06b03b45364e 100644 --- a/generated/Relay/Relay.Autorest/exports/Set-AzRelayHybridConnection.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Set-AzRelayHybridConnection.ps1 @@ -151,8 +151,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Set-AzRelayNamespaceNetworkRuleSet.ps1 b/generated/Relay/Relay.Autorest/exports/Set-AzRelayNamespaceNetworkRuleSet.ps1 index 9afa25c13383..6a7750300cb9 100644 --- a/generated/Relay/Relay.Autorest/exports/Set-AzRelayNamespaceNetworkRuleSet.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Set-AzRelayNamespaceNetworkRuleSet.ps1 @@ -174,8 +174,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Set-AzWcfRelay.ps1 b/generated/Relay/Relay.Autorest/exports/Set-AzWcfRelay.ps1 index f7fb5cb47cb3..4f15359b3b79 100644 --- a/generated/Relay/Relay.Autorest/exports/Set-AzWcfRelay.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Set-AzWcfRelay.ps1 @@ -159,8 +159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Test-AzRelayName.ps1 b/generated/Relay/Relay.Autorest/exports/Test-AzRelayName.ps1 index 1b2ecd55b030..c6f5492ef9fd 100644 --- a/generated/Relay/Relay.Autorest/exports/Test-AzRelayName.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Test-AzRelayName.ps1 @@ -121,8 +121,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/exports/Update-AzRelayNamespace.ps1 b/generated/Relay/Relay.Autorest/exports/Update-AzRelayNamespace.ps1 index cc9b87dc008b..b53850083d62 100644 --- a/generated/Relay/Relay.Autorest/exports/Update-AzRelayNamespace.ps1 +++ b/generated/Relay/Relay.Autorest/exports/Update-AzRelayNamespace.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Relay/Relay.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Relay/Relay.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index fd9bc862a54b..afcb1ef6f6ba 100644 --- a/generated/Relay/Relay.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Relay/Relay.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservation.ps1 b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservation.ps1 index 26ca43d94354..b25b69c588e3 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservation.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservation.ps1 @@ -182,8 +182,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationAvailableScope.ps1 b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationAvailableScope.ps1 index b43a969b5323..25702c5b530d 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationAvailableScope.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationAvailableScope.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationCatalog.ps1 b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationCatalog.ps1 index 7313998f68dd..8b8cb7c1f50e 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationCatalog.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationCatalog.ps1 @@ -172,8 +172,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationHistory.ps1 b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationHistory.ps1 index b9e8af625500..e4bd312ff4d5 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationHistory.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationHistory.ps1 @@ -105,8 +105,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationOrder.ps1 b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationOrder.ps1 index daef2180104e..bf15b4535887 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationOrder.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationOrder.ps1 @@ -127,8 +127,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationOrderId.ps1 b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationOrderId.ps1 index c29e75c3f437..0e058a32e41e 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationOrderId.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationOrderId.ps1 @@ -118,8 +118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationQuote.ps1 b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationQuote.ps1 index dd25eadbf04b..622c90a355b4 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationQuote.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Get-AzReservationQuote.ps1 @@ -224,8 +224,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationArchiveReservation.ps1 b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationArchiveReservation.ps1 index 06260ceca316..e6eeb0d918ec 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationArchiveReservation.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationArchiveReservation.ps1 @@ -142,8 +142,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationCalculateExchange.ps1 b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationCalculateExchange.ps1 index 72d1e719ff21..5be262e24d6e 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationCalculateExchange.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationCalculateExchange.ps1 @@ -221,8 +221,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationCalculateRefund.ps1 b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationCalculateRefund.ps1 index 422f459ff7d0..2dc964349eac 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationCalculateRefund.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationCalculateRefund.ps1 @@ -166,8 +166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationExchange.ps1 b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationExchange.ps1 index 4c57d98d3a7e..ae0cd1a07032 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationExchange.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationExchange.ps1 @@ -123,8 +123,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationReturn.ps1 b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationReturn.ps1 index e04c89f80ae6..0dac6ca1ca2b 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationReturn.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationReturn.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationUnarchiveReservation.ps1 b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationUnarchiveReservation.ps1 index 467c361a1973..b99fa234cafc 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationUnarchiveReservation.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Invoke-AzReservationUnarchiveReservation.ps1 @@ -142,8 +142,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Merge-AzReservation.ps1 b/generated/Reservations/Reservations.Autorest/exports/Merge-AzReservation.ps1 index 7ddc964951ad..deabfbfced54 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Merge-AzReservation.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Merge-AzReservation.ps1 @@ -108,8 +108,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Move-AzReservationDirectory.ps1 b/generated/Reservations/Reservations.Autorest/exports/Move-AzReservationDirectory.ps1 index 0e3b00720a11..41ed84b0d87f 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Move-AzReservationDirectory.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Move-AzReservationDirectory.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/New-AzReservation.ps1 b/generated/Reservations/Reservations.Autorest/exports/New-AzReservation.ps1 index 82d03e1c9796..ac2efc57a065 100644 --- a/generated/Reservations/Reservations.Autorest/exports/New-AzReservation.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/New-AzReservation.ps1 @@ -278,8 +278,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Reservations/Reservations.Autorest/exports/ProxyCmdletDefinitions.ps1 index 1fce0632bd4e..2f6238adcb58 100644 --- a/generated/Reservations/Reservations.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -412,8 +411,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -588,8 +586,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -769,8 +766,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -967,8 +963,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1256,8 +1251,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1503,8 +1497,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1712,8 +1705,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1998,8 +1990,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2229,8 +2220,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2418,8 +2408,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2625,8 +2614,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2828,8 +2816,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3172,8 +3159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3536,8 +3522,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3781,8 +3766,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3955,8 +3939,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4133,8 +4116,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Split-AzReservation.ps1 b/generated/Reservations/Reservations.Autorest/exports/Split-AzReservation.ps1 index d5c52009971c..39c5a0e0e6b3 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Split-AzReservation.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Split-AzReservation.ps1 @@ -115,8 +115,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/exports/Update-AzReservation.ps1 b/generated/Reservations/Reservations.Autorest/exports/Update-AzReservation.ps1 index 9dea0566de87..b06287939a92 100644 --- a/generated/Reservations/Reservations.Autorest/exports/Update-AzReservation.ps1 +++ b/generated/Reservations/Reservations.Autorest/exports/Update-AzReservation.ps1 @@ -298,8 +298,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableExpanded.cs index e18f4884d062..0891f3124e0e 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableExpanded.cs @@ -43,15 +43,6 @@ public partial class GetAzReservationAvailableScope_AvailableExpanded : global:: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -241,11 +232,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.GetAzReservationA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -561,24 +547,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IAvailableScopeProperties var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaIdentityExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaIdentityExpanded.cs index 63a1752d9fa5..5c306630d9e7 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaIdentityExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class GetAzReservationAvailableScope_AvailableViaIdentityExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.GetAzReservationA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -557,24 +543,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IAvailableScopeProperties var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaIdentityReservationOrderExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaIdentityReservationOrderExpanded.cs index e0ccf690d83f..9a5d1f7ecc5c 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaIdentityReservationOrderExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaIdentityReservationOrderExpanded.cs @@ -43,15 +43,6 @@ public partial class GetAzReservationAvailableScope_AvailableViaIdentityReservat /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.GetAzReservationA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -570,24 +556,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IAvailableScopeProperties var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaJsonFilePath.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaJsonFilePath.cs index 3d870d60cfc2..1deb3261ea24 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaJsonFilePath.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class GetAzReservationAvailableScope_AvailableViaJsonFilePath : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.GetAzReservationA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,24 +548,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IAvailableScopeProperties var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaJsonString.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaJsonString.cs index 1c54ce9cdd8e..4354df193ffc 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaJsonString.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/GetAzReservationAvailableScope_AvailableViaJsonString.cs @@ -41,15 +41,6 @@ public partial class GetAzReservationAvailableScope_AvailableViaJsonString : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -240,11 +231,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.GetAzReservationA /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -560,24 +546,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IAvailableScopeProperties var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_Archive.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_Archive.cs index f26dab0e2372..1d5209ecbe7c 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_Archive.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_Archive.cs @@ -465,7 +465,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_ArchiveViaIdentity.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_ArchiveViaIdentity.cs index 6ffd63ca155f..fec8618c25a5 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_ArchiveViaIdentity.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_ArchiveViaIdentity.cs @@ -461,7 +461,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_ArchiveViaIdentityReservationOrder.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_ArchiveViaIdentityReservationOrder.cs index 0e5f1861f79d..eda578f61db5 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_ArchiveViaIdentityReservationOrder.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationArchiveReservation_ArchiveViaIdentityReservationOrder.cs @@ -473,7 +473,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostExpanded.cs index 35f9333f12a2..c00e601d36a2 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostExpanded.cs @@ -43,15 +43,6 @@ public partial class InvokeAzReservationCalculateExchange_PostExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,24 +541,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.ICalculateExchangeOperationResultResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostViaJsonFilePath.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostViaJsonFilePath.cs index 127d6dd7f82d..0e4f3a92c6bd 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostViaJsonFilePath.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class InvokeAzReservationCalculateExchange_PostViaJsonFilePath : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -214,11 +205,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -534,24 +520,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.ICalculateExchangeOperationResultResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostViaJsonString.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostViaJsonString.cs index 511bca64ccf1..b33dd2ba0cbd 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostViaJsonString.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationCalculateExchange_PostViaJsonString.cs @@ -41,15 +41,6 @@ public partial class InvokeAzReservationCalculateExchange_PostViaJsonString : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -210,11 +201,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -530,24 +516,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.ICalculateExchangeOperationResultResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostExpanded.cs index 37e0fbfe7680..232741ead7c5 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostExpanded.cs @@ -45,15 +45,6 @@ public partial class InvokeAzReservationExchange_PostExpanded : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -212,11 +203,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -532,24 +518,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IExchangeOperationResultResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostViaJsonFilePath.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostViaJsonFilePath.cs index 4ac9b6200164..1d4a93b222f4 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostViaJsonFilePath.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostViaJsonFilePath.cs @@ -43,17 +43,8 @@ public partial class InvokeAzReservationExchange_PostViaJsonFilePath : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -214,11 +205,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -534,24 +520,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IExchangeOperationResultResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostViaJsonString.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostViaJsonString.cs index bf15807d95d5..f439b1c58dac 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostViaJsonString.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationExchange_PostViaJsonString.cs @@ -43,15 +43,6 @@ public partial class InvokeAzReservationExchange_PostViaJsonString : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -212,11 +203,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -532,24 +518,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IExchangeOperationResultResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostExpanded.cs index 5ed785448952..a650797d2a97 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostExpanded.cs @@ -44,15 +44,6 @@ public partial class InvokeAzReservationReturn_PostExpanded : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -270,11 +261,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationOrderResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaIdentityExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaIdentityExpanded.cs index 33ec1d2db92e..64b15c578dc7 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaIdentityExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaIdentityExpanded.cs @@ -44,15 +44,6 @@ public partial class InvokeAzReservationReturn_PostViaIdentityExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -595,24 +581,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationOrderResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaJsonFilePath.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaJsonFilePath.cs index 445b052fe988..2de9bea443c0 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaJsonFilePath.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class InvokeAzReservationReturn_PostViaJsonFilePath : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -228,11 +219,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -548,24 +534,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationOrderResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaJsonString.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaJsonString.cs index 87f757feb9b4..2820d4346fc1 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaJsonString.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationReturn_PostViaJsonString.cs @@ -42,15 +42,6 @@ public partial class InvokeAzReservationReturn_PostViaJsonString : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -226,11 +217,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.InvokeAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -546,24 +532,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationOrderResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_Unarchive.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_Unarchive.cs index 3296f5cb2ecf..b63b494a4f00 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_Unarchive.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_Unarchive.cs @@ -465,7 +465,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_UnarchiveViaIdentity.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_UnarchiveViaIdentity.cs index f32c3b554969..5afaa402b90a 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_UnarchiveViaIdentity.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_UnarchiveViaIdentity.cs @@ -461,7 +461,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_UnarchiveViaIdentityReservationOrder.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_UnarchiveViaIdentityReservationOrder.cs index 590aae3a1e93..47af1defee1e 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_UnarchiveViaIdentityReservationOrder.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/InvokeAzReservationUnarchiveReservation_UnarchiveViaIdentityReservationOrder.cs @@ -473,7 +473,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_Merge.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_Merge.cs index 4df5ff40f2d6..ff8fa77d9a51 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_Merge.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_Merge.cs @@ -43,15 +43,6 @@ public partial class MergeAzReservation_Merge : global::System.Management.Automa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -229,11 +220,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.MergeAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,29 +537,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeExpanded.cs index 00f891b16317..a6a8ec550d2f 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeExpanded.cs @@ -46,15 +46,6 @@ public partial class MergeAzReservation_MergeExpanded : global::System.Managemen /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -232,11 +223,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.MergeAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -554,29 +540,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaIdentity.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaIdentity.cs index 2fafd74bfe64..7dbf73f9227f 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaIdentity.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaIdentity.cs @@ -43,15 +43,6 @@ public partial class MergeAzReservation_MergeViaIdentity : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.MergeAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -555,29 +541,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaIdentityExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaIdentityExpanded.cs index 660e3f2a656c..475189070f5e 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaIdentityExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaIdentityExpanded.cs @@ -46,15 +46,6 @@ public partial class MergeAzReservation_MergeViaIdentityExpanded : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -224,11 +215,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.MergeAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -558,29 +544,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaJsonFilePath.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaJsonFilePath.cs index af2c3f01ffad..ad9f54cb027f 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaJsonFilePath.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaJsonFilePath.cs @@ -44,17 +44,8 @@ public partial class MergeAzReservation_MergeViaJsonFilePath : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.MergeAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -553,29 +539,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaJsonString.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaJsonString.cs index 10d2ff314c00..bb086eff52a1 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaJsonString.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/MergeAzReservation_MergeViaJsonString.cs @@ -44,15 +44,6 @@ public partial class MergeAzReservation_MergeViaJsonString : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -229,11 +220,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.MergeAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,29 +537,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseExpanded.cs index e8b8ddf993b1..24e4ca95b6e4 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzReservation_PurchaseExpanded : global::System.Manageme /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This property /// will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType. @@ -428,11 +419,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.NewAzReservation_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -748,24 +734,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationOrderResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaIdentityExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaIdentityExpanded.cs index aeb470fada75..efb9e2ed35b1 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaIdentityExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzReservation_PurchaseViaIdentityExpanded : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This property /// will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType. @@ -421,11 +412,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.NewAzReservation_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -753,24 +739,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationOrderResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaJsonFilePath.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaJsonFilePath.cs index 9a305e1fc501..ac0bb4be8129 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaJsonFilePath.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzReservation_PurchaseViaJsonFilePath : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -227,11 +218,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.NewAzReservation_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,24 +533,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationOrderResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaJsonString.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaJsonString.cs index 892417f10157..e13d676639a4 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaJsonString.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/NewAzReservation_PurchaseViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzReservation_PurchaseViaJsonString : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -225,11 +216,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.NewAzReservation_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -545,24 +531,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationOrderResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitExpanded.cs index a1b6c0b994df..3c10b9369215 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitExpanded.cs @@ -46,15 +46,6 @@ public partial class SplitAzReservation_SplitExpanded : global::System.Managemen /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -243,11 +234,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.SplitAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -565,29 +551,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaIdentityExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaIdentityExpanded.cs index 141e10f3b2e6..c3fdbba3b573 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaIdentityExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaIdentityExpanded.cs @@ -46,15 +46,6 @@ public partial class SplitAzReservation_SplitViaIdentityExpanded : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -235,11 +226,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.SplitAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -569,29 +555,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaJsonFilePath.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaJsonFilePath.cs index 64090cf5fc0d..5b79c73288e5 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaJsonFilePath.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaJsonFilePath.cs @@ -44,17 +44,8 @@ public partial class SplitAzReservation_SplitViaJsonFilePath : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -231,11 +222,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.SplitAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -553,29 +539,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaJsonString.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaJsonString.cs index 0b7ee8f41a95..60e0517b6440 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaJsonString.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/SplitAzReservation_SplitViaJsonString.cs @@ -44,15 +44,6 @@ public partial class SplitAzReservation_SplitViaJsonString : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -229,11 +220,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.SplitAzReservatio /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -551,29 +537,7 @@ protected override void StopProcessing() var result = (await response); // response should be returning an array of some kind. +Pageable // array / / - if (null != result) - { - if (0 == _responseSize && 1 == result.Count) - { - _firstResponse = result[0]; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - var values = new System.Collections.Generic.List(); - foreach( var value in result ) - { - values.Add(value.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(values, true); - _responseSize = 2; - } - } + WriteObject(result, true); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateExpanded.cs index 0664455bf632..bb8078814e60 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzReservation_UpdateExpanded : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The request for reservation patch private Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Patch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This property /// will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType. @@ -376,11 +367,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.UpdateAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -696,24 +682,7 @@ public UpdateAzReservation_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaIdentityExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaIdentityExpanded.cs index a011dc25b647..6b86074ae062 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaIdentityExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzReservation_UpdateViaIdentityExpanded : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The request for reservation patch private Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Patch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This property /// will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType. @@ -352,11 +343,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.UpdateAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -688,24 +674,7 @@ public UpdateAzReservation_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaIdentityReservationOrderExpanded.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaIdentityReservationOrderExpanded.cs index 13d36c266f11..530ea47031af 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaIdentityReservationOrderExpanded.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaIdentityReservationOrderExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzReservation_UpdateViaIdentityReservationOrderExpand /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The request for reservation patch private Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Patch(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// /// List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This property /// will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType. @@ -370,11 +361,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.UpdateAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -704,24 +690,7 @@ public UpdateAzReservation_UpdateViaIdentityReservationOrderExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaJsonFilePath.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaJsonFilePath.cs index 68324d6a8dfd..c10d66c6f514 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaJsonFilePath.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzReservation_UpdateViaJsonFilePath : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.UpdateAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -564,24 +550,7 @@ public UpdateAzReservation_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaJsonString.cs b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaJsonString.cs index 24b909590039..ef83c4385525 100644 --- a/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaJsonString.cs +++ b/generated/Reservations/Reservations.Autorest/generated/cmdlets/UpdateAzReservation_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzReservation_UpdateViaJsonString : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Reservations.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Reservations.ParameterCategory.Runtime)] @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Reservations.Cmdlets.UpdateAzReservati /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Reservations.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,24 +548,7 @@ public UpdateAzReservation_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.IReservationResponse var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Reservations/Reservations.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Reservations/Reservations.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index b815195db219..b7109044a0a2 100644 --- a/generated/Reservations/Reservations.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Reservations/Reservations.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Reservations/Reservations.Autorest/generated/runtime/Context.cs b/generated/Reservations/Reservations.Autorest/generated/runtime/Context.cs index 12d5bb5643bc..66baebe23619 100644 --- a/generated/Reservations/Reservations.Autorest/generated/runtime/Context.cs +++ b/generated/Reservations/Reservations.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Reservations.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/exports/Get-AzResourceGraphQuery.ps1 b/generated/ResourceGraph/ResourceGraph.Autorest/exports/Get-AzResourceGraphQuery.ps1 index 10ce54d746bf..e274547b3d9e 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/exports/Get-AzResourceGraphQuery.ps1 +++ b/generated/ResourceGraph/ResourceGraph.Autorest/exports/Get-AzResourceGraphQuery.ps1 @@ -140,8 +140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/exports/New-AzResourceGraphQuery.ps1 b/generated/ResourceGraph/ResourceGraph.Autorest/exports/New-AzResourceGraphQuery.ps1 index 51b8cf8bc1e3..f7e1b0a973b4 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/exports/New-AzResourceGraphQuery.ps1 +++ b/generated/ResourceGraph/ResourceGraph.Autorest/exports/New-AzResourceGraphQuery.ps1 @@ -148,8 +148,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ResourceGraph/ResourceGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 index 1c8829af46b5..cc876905bc94 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ResourceGraph/ResourceGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -140,8 +140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -354,8 +353,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -573,8 +571,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -801,8 +798,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/exports/Remove-AzResourceGraphQuery.ps1 b/generated/ResourceGraph/ResourceGraph.Autorest/exports/Remove-AzResourceGraphQuery.ps1 index b9857e9b149e..a8a3650f45a5 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/exports/Remove-AzResourceGraphQuery.ps1 +++ b/generated/ResourceGraph/ResourceGraph.Autorest/exports/Remove-AzResourceGraphQuery.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/exports/Update-AzResourceGraphQuery.ps1 b/generated/ResourceGraph/ResourceGraph.Autorest/exports/Update-AzResourceGraphQuery.ps1 index 832a5d3dea7d..0b9d6201971e 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/exports/Update-AzResourceGraphQuery.ps1 +++ b/generated/ResourceGraph/ResourceGraph.Autorest/exports/Update-AzResourceGraphQuery.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/generated/api/Models/GraphQueryResource.cs b/generated/ResourceGraph/ResourceGraph.Autorest/generated/api/Models/GraphQueryResource.cs index 1ff23ac6d673..5f56827129ea 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/generated/api/Models/GraphQueryResource.cs +++ b/generated/ResourceGraph/ResourceGraph.Autorest/generated/api/Models/GraphQueryResource.cs @@ -41,22 +41,40 @@ public partial class GraphQueryResource : Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryProperties Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.GraphQueryProperties()); set { {_property = value;} } } /// Internal Acessors for ResultKind - string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.ResultKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryPropertiesInternal)Property).ResultKind; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryPropertiesInternal)Property).ResultKind = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.ResultKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryPropertiesInternal)Property).ResultKind; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryPropertiesInternal)Property).ResultKind = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for TimeModified - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.TimeModified { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryPropertiesInternal)Property).TimeModified; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryPropertiesInternal)Property).TimeModified = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResourceInternal.TimeModified { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryPropertiesInternal)Property).TimeModified; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryPropertiesInternal)Property).TimeModified = value ?? default(global::System.DateTime); } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IResourceInternal)__resource).Type = value ?? null; } /// /// Azure resource name. This is GUID value. The display name should be assigned within properties field. @@ -92,27 +110,27 @@ public partial class GraphQueryResource : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Resource tags [Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Origin(Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.PropertyOrigin.Inherited)] diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/generated/cmdlets/RemoveAzResourceGraphQuery_Delete.cs b/generated/ResourceGraph/ResourceGraph.Autorest/generated/cmdlets/RemoveAzResourceGraphQuery_Delete.cs index 51ffa2b2683b..2ca5c4cc4427 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/generated/cmdlets/RemoveAzResourceGraphQuery_Delete.cs +++ b/generated/ResourceGraph/ResourceGraph.Autorest/generated/cmdlets/RemoveAzResourceGraphQuery_Delete.cs @@ -494,7 +494,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -518,7 +518,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/generated/cmdlets/RemoveAzResourceGraphQuery_DeleteViaIdentity.cs b/generated/ResourceGraph/ResourceGraph.Autorest/generated/cmdlets/RemoveAzResourceGraphQuery_DeleteViaIdentity.cs index 2f8e582af482..390e221c9d0c 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/generated/cmdlets/RemoveAzResourceGraphQuery_DeleteViaIdentity.cs +++ b/generated/ResourceGraph/ResourceGraph.Autorest/generated/cmdlets/RemoveAzResourceGraphQuery_DeleteViaIdentity.cs @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index b79247b249a7..6be3a59ac295 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index e0a839a72229..a7c1a71a3ba1 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 6a1aa342d963..531526464f59 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/Context.cs b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/Context.cs index ef9c1ba48769..aa77353a6ef8 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/Context.cs +++ b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/MessageAttribute.cs b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/MessageAttribute.cs index 000ee1fc9b36..6d748e6febac 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.ResourceGraph" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/Properties/Resources.resx b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/ResourceGraph/ResourceGraph.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/internal/New-AzResourceGraphQuery.ps1 b/generated/ResourceGraph/ResourceGraph.Autorest/internal/New-AzResourceGraphQuery.ps1 index 1b9c64473cf8..c6a5bae42be1 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/internal/New-AzResourceGraphQuery.ps1 +++ b/generated/ResourceGraph/ResourceGraph.Autorest/internal/New-AzResourceGraphQuery.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new graph query. +Create a new graph query. .Description -create a new graph query. +Create a new graph query. .Example New-AzResourceGraphQuery -Name query-t03 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -Query "project id, name, type, location, tags" .Example diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/ResourceGraph/ResourceGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 index 652ccbd4e76f..89a29c46335d 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/ResourceGraph/ResourceGraph.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new graph query. +Create a new graph query. .Description -create a new graph query. +Create a new graph query. .Example New-AzResourceGraphQuery -Name query-t03 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -Query "project id, name, type, location, tags" .Example @@ -259,9 +259,9 @@ end { <# .Synopsis -update a graph query that has already been added. +Update a graph query that has already been added. .Description -update a graph query that has already been added. +Update a graph query that has already been added. .Example Update-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 -Query "project id, name, type, location, tags" -Tag @{'key1'=1;'key2'=2} .Example diff --git a/generated/ResourceGraph/ResourceGraph.Autorest/internal/Update-AzResourceGraphQuery.ps1 b/generated/ResourceGraph/ResourceGraph.Autorest/internal/Update-AzResourceGraphQuery.ps1 index 713eeae465b1..185f7f02b4a4 100644 --- a/generated/ResourceGraph/ResourceGraph.Autorest/internal/Update-AzResourceGraphQuery.ps1 +++ b/generated/ResourceGraph/ResourceGraph.Autorest/internal/Update-AzResourceGraphQuery.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a graph query that has already been added. +Update a graph query that has already been added. .Description -update a graph query that has already been added. +Update a graph query that has already been added. .Example Update-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 -Query "project id, name, type, location, tags" -Tag @{'key1'=1;'key2'=2} .Example diff --git a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentSchedule.ps1 b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentSchedule.ps1 index 54503191d71a..a2e2d079990f 100644 --- a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentSchedule.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentSchedule.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentScheduleInstance.ps1 b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentScheduleInstance.ps1 index 5eaf6770c72e..ff17bebfa4cb 100644 --- a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentScheduleInstance.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentScheduleInstance.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentScheduleRequest.ps1 b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentScheduleRequest.ps1 index d0ae761319da..078a48930419 100644 --- a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentScheduleRequest.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleAssignmentScheduleRequest.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilitySchedule.ps1 b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilitySchedule.ps1 index 32e016031467..36ee817820fe 100644 --- a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilitySchedule.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilitySchedule.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilityScheduleInstance.ps1 b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilityScheduleInstance.ps1 index 383fd163cefe..200b9784a5a1 100644 --- a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilityScheduleInstance.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilityScheduleInstance.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilityScheduleRequest.ps1 b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilityScheduleRequest.ps1 index 2b5b8dbcf614..f83f68f5e59b 100644 --- a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilityScheduleRequest.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibilityScheduleRequest.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibleChildResource.ps1 b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibleChildResource.ps1 index a0e60106503e..5a57482f8bc5 100644 --- a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibleChildResource.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleEligibleChildResource.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleManagementPolicy.ps1 b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleManagementPolicy.ps1 index c65c1d27ad4a..4082899e47b0 100644 --- a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleManagementPolicy.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleManagementPolicy.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleManagementPolicyAssignment.ps1 b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleManagementPolicyAssignment.ps1 index 91d4db362dc4..fe131afe90e2 100644 --- a/generated/Resources/Authorization.Autorest/exports/Get-AzRoleManagementPolicyAssignment.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Get-AzRoleManagementPolicyAssignment.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/New-AzRoleAssignmentScheduleRequest.ps1 b/generated/Resources/Authorization.Autorest/exports/New-AzRoleAssignmentScheduleRequest.ps1 index 853d3268c07a..62037996b66d 100644 --- a/generated/Resources/Authorization.Autorest/exports/New-AzRoleAssignmentScheduleRequest.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/New-AzRoleAssignmentScheduleRequest.ps1 @@ -235,8 +235,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/New-AzRoleEligibilityScheduleRequest.ps1 b/generated/Resources/Authorization.Autorest/exports/New-AzRoleEligibilityScheduleRequest.ps1 index 76a75a236437..d713944a2818 100644 --- a/generated/Resources/Authorization.Autorest/exports/New-AzRoleEligibilityScheduleRequest.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/New-AzRoleEligibilityScheduleRequest.ps1 @@ -219,8 +219,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/New-AzRoleManagementPolicyAssignment.ps1 b/generated/Resources/Authorization.Autorest/exports/New-AzRoleManagementPolicyAssignment.ps1 index 18c698e236d1..6c03d69977f7 100644 --- a/generated/Resources/Authorization.Autorest/exports/New-AzRoleManagementPolicyAssignment.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/New-AzRoleManagementPolicyAssignment.ps1 @@ -131,8 +131,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Resources/Authorization.Autorest/exports/ProxyCmdletDefinitions.ps1 index 95f3df1196e8..dfeec5bfaa78 100644 --- a/generated/Resources/Authorization.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -369,8 +368,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -586,8 +584,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -803,8 +800,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1020,8 +1016,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1237,8 +1232,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1414,8 +1408,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1613,8 +1606,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1814,8 +1806,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2114,8 +2105,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2398,8 +2388,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2594,8 +2583,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2796,8 +2784,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2997,8 +2984,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3199,8 +3185,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3401,8 +3386,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3697,8 +3681,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3987,8 +3970,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4194,8 +4176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4488,8 +4469,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Remove-AzRoleManagementPolicy.ps1 b/generated/Resources/Authorization.Autorest/exports/Remove-AzRoleManagementPolicy.ps1 index 1cadc85c0d90..af4d66cb1422 100644 --- a/generated/Resources/Authorization.Autorest/exports/Remove-AzRoleManagementPolicy.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Remove-AzRoleManagementPolicy.ps1 @@ -137,8 +137,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Remove-AzRoleManagementPolicyAssignment.ps1 b/generated/Resources/Authorization.Autorest/exports/Remove-AzRoleManagementPolicyAssignment.ps1 index 20eef454f6e0..42cc6e708006 100644 --- a/generated/Resources/Authorization.Autorest/exports/Remove-AzRoleManagementPolicyAssignment.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Remove-AzRoleManagementPolicyAssignment.ps1 @@ -137,8 +137,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Stop-AzRoleAssignmentScheduleRequest.ps1 b/generated/Resources/Authorization.Autorest/exports/Stop-AzRoleAssignmentScheduleRequest.ps1 index 93a9c7a74a41..cdae162cf8e2 100644 --- a/generated/Resources/Authorization.Autorest/exports/Stop-AzRoleAssignmentScheduleRequest.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Stop-AzRoleAssignmentScheduleRequest.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Stop-AzRoleEligibilityScheduleRequest.ps1 b/generated/Resources/Authorization.Autorest/exports/Stop-AzRoleEligibilityScheduleRequest.ps1 index 770efc11e570..a75ed40dbd37 100644 --- a/generated/Resources/Authorization.Autorest/exports/Stop-AzRoleEligibilityScheduleRequest.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Stop-AzRoleEligibilityScheduleRequest.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Update-AzRoleAssignmentScheduleRequest.ps1 b/generated/Resources/Authorization.Autorest/exports/Update-AzRoleAssignmentScheduleRequest.ps1 index df05525737e8..5a5b0f6f36a9 100644 --- a/generated/Resources/Authorization.Autorest/exports/Update-AzRoleAssignmentScheduleRequest.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Update-AzRoleAssignmentScheduleRequest.ps1 @@ -232,8 +232,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Update-AzRoleEligibilityScheduleRequest.ps1 b/generated/Resources/Authorization.Autorest/exports/Update-AzRoleEligibilityScheduleRequest.ps1 index d05651f74e2f..0e168a6a8199 100644 --- a/generated/Resources/Authorization.Autorest/exports/Update-AzRoleEligibilityScheduleRequest.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Update-AzRoleEligibilityScheduleRequest.ps1 @@ -226,8 +226,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Update-AzRoleManagementPolicy.ps1 b/generated/Resources/Authorization.Autorest/exports/Update-AzRoleManagementPolicy.ps1 index 069627bd80bd..85b5f702cbeb 100644 --- a/generated/Resources/Authorization.Autorest/exports/Update-AzRoleManagementPolicy.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Update-AzRoleManagementPolicy.ps1 @@ -230,8 +230,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/exports/Update-AzRoleManagementPolicyAssignment.ps1 b/generated/Resources/Authorization.Autorest/exports/Update-AzRoleManagementPolicyAssignment.ps1 index 5b6153f85e5b..8fc864e2b92c 100644 --- a/generated/Resources/Authorization.Autorest/exports/Update-AzRoleManagementPolicyAssignment.ps1 +++ b/generated/Resources/Authorization.Autorest/exports/Update-AzRoleManagementPolicyAssignment.ps1 @@ -143,8 +143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 7f2cac3673cb..ecb68b2750f0 100644 --- a/generated/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Resources/Authorization.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Resources/DataBoundary.Autorest/exports/Get-AzDataBoundaryScope.ps1 b/generated/Resources/DataBoundary.Autorest/exports/Get-AzDataBoundaryScope.ps1 index 30c7959e9e0e..f8e81e545d16 100644 --- a/generated/Resources/DataBoundary.Autorest/exports/Get-AzDataBoundaryScope.ps1 +++ b/generated/Resources/DataBoundary.Autorest/exports/Get-AzDataBoundaryScope.ps1 @@ -103,8 +103,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/DataBoundary.Autorest/exports/Get-AzDataBoundaryTenant.ps1 b/generated/Resources/DataBoundary.Autorest/exports/Get-AzDataBoundaryTenant.ps1 index d139468825a8..86b93118a093 100644 --- a/generated/Resources/DataBoundary.Autorest/exports/Get-AzDataBoundaryTenant.ps1 +++ b/generated/Resources/DataBoundary.Autorest/exports/Get-AzDataBoundaryTenant.ps1 @@ -93,8 +93,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/DataBoundary.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Resources/DataBoundary.Autorest/exports/ProxyCmdletDefinitions.ps1 index 29e2738aff36..3477e6651344 100644 --- a/generated/Resources/DataBoundary.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Resources/DataBoundary.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -103,8 +103,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -259,8 +258,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -450,8 +448,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/DataBoundary.Autorest/exports/Set-AzDataBoundary.ps1 b/generated/Resources/DataBoundary.Autorest/exports/Set-AzDataBoundary.ps1 index a6bf991ec8d7..21d6cf620924 100644 --- a/generated/Resources/DataBoundary.Autorest/exports/Set-AzDataBoundary.ps1 +++ b/generated/Resources/DataBoundary.Autorest/exports/Set-AzDataBoundary.ps1 @@ -128,8 +128,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/DataBoundary.Autorest/generated/Module.cs b/generated/Resources/DataBoundary.Autorest/generated/Module.cs index 500c866afe3f..4a25b127edee 100644 --- a/generated/Resources/DataBoundary.Autorest/generated/Module.cs +++ b/generated/Resources/DataBoundary.Autorest/generated/Module.cs @@ -68,7 +68,7 @@ public partial class Module public static Microsoft.Azure.PowerShell.Cmdlets.DataBoundary.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } /// The Name of this module - public string Name => @"Az.DataBoundary"; + public string Name => @"Az.Resources"; /// The delegate to call when this module is loaded (supporting a commmon module). public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } @@ -80,7 +80,7 @@ public partial class Module public global::System.String ProfileName { get; set; } /// The ResourceID for this module (azure arm). - public string ResourceId => @"Az.DataBoundary"; + public string ResourceId => @"Az.Resources"; /// The delegate to call in WriteObject to sanitize the output object. public SanitizerDelegate SanitizeOutput { get; set; } diff --git a/generated/Resources/DataBoundary.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Resources/DataBoundary.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index cd58f46b1ae5..50b911832818 100644 --- a/generated/Resources/DataBoundary.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Resources/DataBoundary.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Resources/DataBoundary.Autorest/generated/runtime/Context.cs b/generated/Resources/DataBoundary.Autorest/generated/runtime/Context.cs index b16f68e36453..8d71d4269e87 100644 --- a/generated/Resources/DataBoundary.Autorest/generated/runtime/Context.cs +++ b/generated/Resources/DataBoundary.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBoundary.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Resources/MSGraph.Autorest/exports/Add-AzADAppPermission.ps1 b/generated/Resources/MSGraph.Autorest/exports/Add-AzADAppPermission.ps1 index 6bea8b82c476..a7ce6f4780c6 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Add-AzADAppPermission.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Add-AzADAppPermission.ps1 @@ -137,8 +137,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Add-AzADGroupMember.ps1 b/generated/Resources/MSGraph.Autorest/exports/Add-AzADGroupMember.ps1 index 3a1f18736da5..b49e474f0fb4 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Add-AzADGroupMember.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Add-AzADGroupMember.ps1 @@ -474,8 +474,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppCredential.ps1 index 7b621d82daa5..a64d7f687c30 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppCredential.ps1 @@ -371,8 +371,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppFederatedCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppFederatedCredential.ps1 index 26c65d593985..1140297314bc 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppFederatedCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppFederatedCredential.ps1 @@ -422,8 +422,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppPermission.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppPermission.ps1 index 35d22e034329..43a005def628 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppPermission.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADAppPermission.ps1 @@ -104,8 +104,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADApplication.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADApplication.ps1 index f72b6f7278b7..645f43ecdc2a 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADApplication.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADApplication.ps1 @@ -209,8 +209,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroup.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroup.ps1 index 0fbc412cbab6..dbdbc06f776c 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroup.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroup.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroupMember.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroupMember.ps1 index 1bf6b0763e78..a1a3fcab4a34 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroupMember.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroupMember.ps1 @@ -493,8 +493,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroupOwner.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroupOwner.ps1 index fd450ec3c2c5..63afba830e4a 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroupOwner.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADGroupOwner.ps1 @@ -170,8 +170,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADOrganization.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADOrganization.ps1 index 7c1d73474a70..f996d9d8ed46 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADOrganization.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADOrganization.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipal.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipal.ps1 index 4f22462d6a64..a6726a1005ef 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipal.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipal.ps1 @@ -461,8 +461,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipalAppRoleAssignment.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipalAppRoleAssignment.ps1 index 3370babb774c..cde7984b298a 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipalAppRoleAssignment.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADServicePrincipalAppRoleAssignment.ps1 @@ -158,8 +158,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADSpCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADSpCredential.ps1 index 4cc95ca0c027..3e246f2e7c83 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADSpCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADSpCredential.ps1 @@ -397,8 +397,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Get-AzADUser.ps1 b/generated/Resources/MSGraph.Autorest/exports/Get-AzADUser.ps1 index 9f560c1c6a15..bd9d24efac47 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Get-AzADUser.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Get-AzADUser.ps1 @@ -216,8 +216,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/New-AzADAppCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/New-AzADAppCredential.ps1 index ddb5817b2f62..91e47ba61890 100644 --- a/generated/Resources/MSGraph.Autorest/exports/New-AzADAppCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/New-AzADAppCredential.ps1 @@ -476,8 +476,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/New-AzADAppFederatedCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/New-AzADAppFederatedCredential.ps1 index e4f8e850bedb..1e2c4c5f5257 100644 --- a/generated/Resources/MSGraph.Autorest/exports/New-AzADAppFederatedCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/New-AzADAppFederatedCredential.ps1 @@ -151,8 +151,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/New-AzADApplication.ps1 b/generated/Resources/MSGraph.Autorest/exports/New-AzADApplication.ps1 index 9f6b54257b42..1e61cda7f2d0 100644 --- a/generated/Resources/MSGraph.Autorest/exports/New-AzADApplication.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/New-AzADApplication.ps1 @@ -1109,8 +1109,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/New-AzADGroup.ps1 b/generated/Resources/MSGraph.Autorest/exports/New-AzADGroup.ps1 index 1b176ea4b88e..46cde171e161 100644 --- a/generated/Resources/MSGraph.Autorest/exports/New-AzADGroup.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/New-AzADGroup.ps1 @@ -346,8 +346,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/New-AzADGroupOwner.ps1 b/generated/Resources/MSGraph.Autorest/exports/New-AzADGroupOwner.ps1 index d0cc41fb4395..80919b282ac3 100644 --- a/generated/Resources/MSGraph.Autorest/exports/New-AzADGroupOwner.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/New-AzADGroupOwner.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipal.ps1 b/generated/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipal.ps1 index 92f4427fae54..6da14f5e9a97 100644 --- a/generated/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipal.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipal.ps1 @@ -1638,8 +1638,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipalAppRoleAssignment.ps1 b/generated/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipalAppRoleAssignment.ps1 index 53ecc40a133f..e41dc11ac802 100644 --- a/generated/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipalAppRoleAssignment.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/New-AzADServicePrincipalAppRoleAssignment.ps1 @@ -149,8 +149,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/New-AzADSpCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/New-AzADSpCredential.ps1 index 505d9b4c16fd..25a851caee1f 100644 --- a/generated/Resources/MSGraph.Autorest/exports/New-AzADSpCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/New-AzADSpCredential.ps1 @@ -476,8 +476,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/New-AzADUser.ps1 b/generated/Resources/MSGraph.Autorest/exports/New-AzADUser.ps1 index 9212447fe6d9..9b95df2c43e8 100644 --- a/generated/Resources/MSGraph.Autorest/exports/New-AzADUser.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/New-AzADUser.ps1 @@ -487,8 +487,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 index a15cb96aa213..6699b436082c 100644 --- a/generated/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -170,8 +170,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -379,8 +378,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -600,8 +598,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -781,8 +778,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -957,8 +953,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1137,8 +1132,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1366,8 +1360,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1760,8 +1753,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1985,8 +1977,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2188,8 +2179,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2726,8 +2716,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3165,8 +3154,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3653,8 +3641,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3928,8 +3915,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4101,8 +4087,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4360,8 +4345,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4919,8 +4903,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5445,8 +5428,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5911,8 +5893,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6193,8 +6174,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6738,8 +6718,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6967,8 +6946,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8139,8 +8117,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8552,8 +8529,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8727,8 +8703,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10428,8 +10403,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10645,8 +10619,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11187,8 +11160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11748,8 +11720,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12195,8 +12166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12638,8 +12608,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12815,8 +12784,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13338,8 +13306,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13884,8 +13851,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14623,8 +14589,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15100,8 +15065,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15719,8 +15683,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17120,8 +17083,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18835,8 +18797,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -19768,8 +19729,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppCredential.ps1 index 3a3555cb9e76..be783c3c6495 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppCredential.ps1 @@ -383,8 +383,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppFederatedCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppFederatedCredential.ps1 index cabec78e2f66..0223d13827fe 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppFederatedCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppFederatedCredential.ps1 @@ -117,8 +117,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppPermission.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppPermission.ps1 index 5169e94afbd2..dc6773868622 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppPermission.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADAppPermission.ps1 @@ -111,8 +111,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADApplication.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADApplication.ps1 index eaa58a3eb0b6..bfc52e2f4251 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADApplication.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADApplication.ps1 @@ -377,8 +377,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroup.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroup.ps1 index d8b64a71e821..faa188fbc7bf 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroup.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroup.ps1 @@ -459,8 +459,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroupMember.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroupMember.ps1 index 6cc1aaa5d05f..d5538e15b041 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroupMember.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroupMember.ps1 @@ -481,8 +481,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroupOwner.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroupOwner.ps1 index 1d09d0430af5..33a1dbca4917 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroupOwner.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADGroupOwner.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipal.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipal.ps1 index 0f3a68114865..2b9b3b4c9b5a 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipal.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipal.ps1 @@ -670,8 +670,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipalAppRoleAssignment.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipalAppRoleAssignment.ps1 index c87a6a8c793f..a5b7c4c56ff8 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipalAppRoleAssignment.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADServicePrincipalAppRoleAssignment.ps1 @@ -117,8 +117,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADSpCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADSpCredential.ps1 index 90642475aab0..8ef8189b9646 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADSpCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADSpCredential.ps1 @@ -409,8 +409,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADUser.ps1 b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADUser.ps1 index 9b64b88166ae..4d440f7741ed 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Remove-AzADUser.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Remove-AzADUser.ps1 @@ -553,8 +553,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Update-AzADAppFederatedCredential.ps1 b/generated/Resources/MSGraph.Autorest/exports/Update-AzADAppFederatedCredential.ps1 index 1ad57b1577ad..1f470a54fcba 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Update-AzADAppFederatedCredential.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Update-AzADAppFederatedCredential.ps1 @@ -166,8 +166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Update-AzADApplication.ps1 b/generated/Resources/MSGraph.Autorest/exports/Update-AzADApplication.ps1 index 3f28c09b8b94..5bbca5fe12d8 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Update-AzADApplication.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Update-AzADApplication.ps1 @@ -1334,8 +1334,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Update-AzADGroup.ps1 b/generated/Resources/MSGraph.Autorest/exports/Update-AzADGroup.ps1 index 33e2b9adf130..617c73a362f4 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Update-AzADGroup.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Update-AzADGroup.ps1 @@ -329,8 +329,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipal.ps1 b/generated/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipal.ps1 index 3959a633b493..492a6003142e 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipal.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipal.ps1 @@ -1650,8 +1650,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipalAppRoleAssignment.ps1 b/generated/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipalAppRoleAssignment.ps1 index 55262e11f739..b14e597a68fa 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipalAppRoleAssignment.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Update-AzADServicePrincipalAppRoleAssignment.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/exports/Update-AzADUser.ps1 b/generated/Resources/MSGraph.Autorest/exports/Update-AzADUser.ps1 index bea6b60a74e6..17b7c9ad0e7f 100644 --- a/generated/Resources/MSGraph.Autorest/exports/Update-AzADUser.ps1 +++ b/generated/Resources/MSGraph.Autorest/exports/Update-AzADUser.ps1 @@ -867,8 +867,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/MSGraph.Autorest/generated/Module.cs b/generated/Resources/MSGraph.Autorest/generated/Module.cs index c488abfc9ac6..4245a5722ec0 100644 --- a/generated/Resources/MSGraph.Autorest/generated/Module.cs +++ b/generated/Resources/MSGraph.Autorest/generated/Module.cs @@ -86,7 +86,7 @@ public partial class Module public static Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } /// The Name of this module - public string Name => @"Az.MSGraph"; + public string Name => @"Az.Resources"; /// The delegate to call when this module is loaded (supporting a commmon module). public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } @@ -95,7 +95,7 @@ public partial class Module public global::System.String ProfileName { get; set; } /// The ResourceID for this module (azure arm). - public string ResourceId => @"Az.MSGraph"; + public string ResourceId => @"Az.Resources"; /// The delegate to call in WriteObject to sanitize the output object. public SanitizerDelegate SanitizeOutput { get; set; } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_Create.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_Create.cs index f41681666ae1..adf54a54e65c 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_Create.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_Create.cs @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateExpanded.cs index 22c61c71fa09..9d71376b3252 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateExpanded.cs @@ -463,7 +463,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateViaJsonFilePath.cs index b310c16d8476..8bbbf0712b8e 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateViaJsonFilePath.cs @@ -472,7 +472,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateViaJsonString.cs index dbf7f945efaf..6a90b371be59 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_CreateViaJsonString.cs @@ -470,7 +470,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupOwnerGraphBPreRef_CreateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupOwnerGraphBPreRef_CreateExpanded.cs index 30204135e6f4..6943c8b55c8b 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupOwnerGraphBPreRef_CreateExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupOwnerGraphBPreRef_CreateExpanded.cs @@ -469,7 +469,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADAppFederatedCredential_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADAppFederatedCredential_Delete.cs index b8a0d3ea19b5..2de16489fce1 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADAppFederatedCredential_Delete.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADAppFederatedCredential_Delete.cs @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationKey_RemoveViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationKey_RemoveViaJsonFilePath.cs index 683436174212..b35bc7496faf 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationKey_RemoveViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationKey_RemoveViaJsonFilePath.cs @@ -468,7 +468,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationKey_RemoveViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationKey_RemoveViaJsonString.cs index b1452b82fad4..656e3133492e 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationKey_RemoveViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationKey_RemoveViaJsonString.cs @@ -466,7 +466,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationPassword_RemoveViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationPassword_RemoveViaJsonFilePath.cs index 935f4374234e..a5cdf1785de2 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationPassword_RemoveViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationPassword_RemoveViaJsonFilePath.cs @@ -468,7 +468,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationPassword_RemoveViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationPassword_RemoveViaJsonString.cs index c78986f530f4..d0e816612a12 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationPassword_RemoveViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADApplicationPassword_RemoveViaJsonString.cs @@ -466,7 +466,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADGroupOwner_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADGroupOwner_Delete.cs index 42884acaae0f..7bf5efe2d56f 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADGroupOwner_Delete.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADGroupOwner_Delete.cs @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalAppRoleAssignment_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalAppRoleAssignment_Delete.cs index 313cef644ae3..5f1d3a923304 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalAppRoleAssignment_Delete.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalAppRoleAssignment_Delete.cs @@ -479,7 +479,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalKey_RemoveViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalKey_RemoveViaJsonFilePath.cs index 6e4a7e9bef53..5ef43e4378d1 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalKey_RemoveViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalKey_RemoveViaJsonFilePath.cs @@ -468,7 +468,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalKey_RemoveViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalKey_RemoveViaJsonString.cs index fae4a848bdc3..148461cea43a 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalKey_RemoveViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalKey_RemoveViaJsonString.cs @@ -466,7 +466,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalPassword_RemoveViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalPassword_RemoveViaJsonFilePath.cs index 2a3738772360..5c792809fe10 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalPassword_RemoveViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalPassword_RemoveViaJsonFilePath.cs @@ -468,7 +468,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalPassword_RemoveViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalPassword_RemoveViaJsonString.cs index 631d061e1133..b893e8c48fc2 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalPassword_RemoveViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzADServicePrincipalPassword_RemoveViaJsonString.cs @@ -466,7 +466,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationKey_Remove.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationKey_Remove.cs index 15248d10b2ec..eee17996daeb 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationKey_Remove.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationKey_Remove.cs @@ -465,7 +465,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationKey_RemoveExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationKey_RemoveExpanded.cs index 3d4b87d12fd6..640f859d8059 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationKey_RemoveExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationKey_RemoveExpanded.cs @@ -480,7 +480,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationPassword_Remove.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationPassword_Remove.cs index 052490dfb17e..570d046a909d 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationPassword_Remove.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationPassword_Remove.cs @@ -465,7 +465,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationPassword_RemoveExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationPassword_RemoveExpanded.cs index 0ea3446759ce..9e31154186e3 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationPassword_RemoveExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplicationPassword_RemoveExpanded.cs @@ -469,7 +469,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs index 59823a26016c..e4de1ed956ea 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdApplication_Delete.cs @@ -470,7 +470,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroupRefMember_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroupRefMember_Delete.cs index 5d572db33955..79fa56b70843 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroupRefMember_Delete.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroupRefMember_Delete.cs @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs index 8b10deaf441a..ae3edc56b840 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdGroup_Delete.cs @@ -470,7 +470,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalKey_Remove.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalKey_Remove.cs index b101b68a58c6..ce89e6454864 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalKey_Remove.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalKey_Remove.cs @@ -465,7 +465,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalKey_RemoveExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalKey_RemoveExpanded.cs index 82899f3eb8b8..8493b176db0c 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalKey_RemoveExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalKey_RemoveExpanded.cs @@ -480,7 +480,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalPassword_Remove.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalPassword_Remove.cs index e39569aa6e9c..9512b0cf790f 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalPassword_Remove.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalPassword_Remove.cs @@ -465,7 +465,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalPassword_RemoveExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalPassword_RemoveExpanded.cs index 0bae7e861980..596beb5975d6 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalPassword_RemoveExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipalPassword_RemoveExpanded.cs @@ -469,7 +469,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs index 09bf99a0904c..404912bbfc27 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdServicePrincipal_Delete.cs @@ -470,7 +470,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs index ae65d898b1ec..559bbf2c0883 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/RemoveAzAdUser_Delete.cs @@ -467,7 +467,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateExpanded.cs index 3af77f41dbfb..cc8bf47fec30 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateExpanded.cs @@ -551,7 +551,7 @@ public UpdateAzADAppFederatedCredential_UpdateExpanded() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateViaJsonFilePath.cs index 41a74f6ed1d4..7e28f7cbe4bc 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateViaJsonFilePath.cs @@ -481,7 +481,7 @@ public UpdateAzADAppFederatedCredential_UpdateViaJsonFilePath() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateViaJsonString.cs index 1cb3fefbe22e..f3b2a48f8640 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADAppFederatedCredential_UpdateViaJsonString.cs @@ -479,7 +479,7 @@ public UpdateAzADAppFederatedCredential_UpdateViaJsonString() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs index e4c8674ff6e7..f2a9efce1111 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonFilePath.cs @@ -472,7 +472,7 @@ public UpdateAzADApplication_UpdateViaJsonFilePath() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs index 1a5d5aa53fcb..986fe39b827f 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADApplication_UpdateViaJsonString.cs @@ -470,7 +470,7 @@ public UpdateAzADApplication_UpdateViaJsonString() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADGroup_UpdateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADGroup_UpdateViaJsonFilePath.cs index bae597881098..ec23d609b6fb 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADGroup_UpdateViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADGroup_UpdateViaJsonFilePath.cs @@ -468,7 +468,7 @@ public UpdateAzADGroup_UpdateViaJsonFilePath() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADGroup_UpdateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADGroup_UpdateViaJsonString.cs index e2a221e9fb54..03a270bb17c0 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADGroup_UpdateViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADGroup_UpdateViaJsonString.cs @@ -466,7 +466,7 @@ public UpdateAzADGroup_UpdateViaJsonString() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_Update.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_Update.cs index de3e9845f2a9..8943b7495513 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_Update.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_Update.cs @@ -482,7 +482,7 @@ public UpdateAzADServicePrincipalAppRoleAssignment_Update() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateExpanded.cs index 6082bcb5a7b3..bd536fa18bdd 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateExpanded.cs @@ -578,7 +578,7 @@ public UpdateAzADServicePrincipalAppRoleAssignment_UpdateExpanded() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonFilePath.cs index 881975b377d5..519e5e0b017b 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonFilePath.cs @@ -482,7 +482,7 @@ public UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonFilePath() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonString.cs index 3d84f068f393..4689515a3b6b 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonString.cs @@ -480,7 +480,7 @@ public UpdateAzADServicePrincipalAppRoleAssignment_UpdateViaJsonString() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs index 7f7ea5fececb..82443065891f 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonFilePath.cs @@ -472,7 +472,7 @@ public UpdateAzADServicePrincipal_UpdateViaJsonFilePath() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs index 3b4349cecaa0..31ddf5377b61 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADServicePrincipal_UpdateViaJsonString.cs @@ -470,7 +470,7 @@ public UpdateAzADServicePrincipal_UpdateViaJsonString() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs index 1444f8a48dea..a79168dc3004 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonFilePath.cs @@ -469,7 +469,7 @@ public UpdateAzADUser_UpdateViaJsonFilePath() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs index 643333bcfa98..91575b5cf330 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzADUser_UpdateViaJsonString.cs @@ -467,7 +467,7 @@ public UpdateAzADUser_UpdateViaJsonString() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs index 98b7fb4fdcc6..444612e1f4c1 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdApplication_UpdateExpanded.cs @@ -915,7 +915,7 @@ public UpdateAzADApplication_UpdateExpanded() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdGroup_UpdateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdGroup_UpdateExpanded.cs index 630003350c3c..67644b12eae3 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdGroup_UpdateExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdGroup_UpdateExpanded.cs @@ -755,7 +755,7 @@ public UpdateAzADGroup_UpdateExpanded() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs index 0bb5da9b7cfe..28fbf2d99794 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdServicePrincipal_UpdateExpanded.cs @@ -1012,7 +1012,7 @@ public UpdateAzADServicePrincipal_UpdateExpanded() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs index dcd889b2cacf..508ba0441af1 100644 --- a/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs +++ b/generated/Resources/MSGraph.Autorest/generated/cmdlets/UpdateAzAdUser_UpdateExpanded.cs @@ -1100,7 +1100,7 @@ public UpdateAzADUser_UpdateExpanded() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 7f2696a9b8bf..2af375877410 100644 --- a/generated/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Resources/MSGraph.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Resources/MSGraph.Autorest/generated/runtime/Context.cs b/generated/Resources/MSGraph.Autorest/generated/runtime/Context.cs index 185c424b0d79..70edf446c355 100644 --- a/generated/Resources/MSGraph.Autorest/generated/runtime/Context.cs +++ b/generated/Resources/MSGraph.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Resources/Policy.Autorest/exports/Get-AzPolicyAssignment.ps1 b/generated/Resources/Policy.Autorest/exports/Get-AzPolicyAssignment.ps1 index ccc20b57b59b..e9cc946d2e36 100644 --- a/generated/Resources/Policy.Autorest/exports/Get-AzPolicyAssignment.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Get-AzPolicyAssignment.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Get-AzPolicyDefinition.ps1 b/generated/Resources/Policy.Autorest/exports/Get-AzPolicyDefinition.ps1 index 6459e1bc075e..a6aba15384dc 100644 --- a/generated/Resources/Policy.Autorest/exports/Get-AzPolicyDefinition.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Get-AzPolicyDefinition.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Get-AzPolicyExemption.ps1 b/generated/Resources/Policy.Autorest/exports/Get-AzPolicyExemption.ps1 index 4bf5749c9d78..be0815a22368 100644 --- a/generated/Resources/Policy.Autorest/exports/Get-AzPolicyExemption.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Get-AzPolicyExemption.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Get-AzPolicySetDefinition.ps1 b/generated/Resources/Policy.Autorest/exports/Get-AzPolicySetDefinition.ps1 index 7705a989f24d..97ae55c0bdd3 100644 --- a/generated/Resources/Policy.Autorest/exports/Get-AzPolicySetDefinition.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Get-AzPolicySetDefinition.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/New-AzPolicyAssignment.ps1 b/generated/Resources/Policy.Autorest/exports/New-AzPolicyAssignment.ps1 index 7a869bab1fa3..45574a0f4154 100644 --- a/generated/Resources/Policy.Autorest/exports/New-AzPolicyAssignment.ps1 +++ b/generated/Resources/Policy.Autorest/exports/New-AzPolicyAssignment.ps1 @@ -326,8 +326,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/New-AzPolicyDefinition.ps1 b/generated/Resources/Policy.Autorest/exports/New-AzPolicyDefinition.ps1 index d78e078eefb2..21766b2505ef 100644 --- a/generated/Resources/Policy.Autorest/exports/New-AzPolicyDefinition.ps1 +++ b/generated/Resources/Policy.Autorest/exports/New-AzPolicyDefinition.ps1 @@ -188,8 +188,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/New-AzPolicyExemption.ps1 b/generated/Resources/Policy.Autorest/exports/New-AzPolicyExemption.ps1 index 622b23cdea43..8587748c9faf 100644 --- a/generated/Resources/Policy.Autorest/exports/New-AzPolicyExemption.ps1 +++ b/generated/Resources/Policy.Autorest/exports/New-AzPolicyExemption.ps1 @@ -239,8 +239,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/New-AzPolicySetDefinition.ps1 b/generated/Resources/Policy.Autorest/exports/New-AzPolicySetDefinition.ps1 index 764b1d3ded47..25995a4ffe63 100644 --- a/generated/Resources/Policy.Autorest/exports/New-AzPolicySetDefinition.ps1 +++ b/generated/Resources/Policy.Autorest/exports/New-AzPolicySetDefinition.ps1 @@ -213,8 +213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Resources/Policy.Autorest/exports/ProxyCmdletDefinitions.ps1 index ce85b01d2e07..8ac462c51351 100644 --- a/generated/Resources/Policy.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Resources/Policy.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -426,8 +425,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -657,8 +655,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -908,8 +905,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1304,8 +1300,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1558,8 +1553,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1862,8 +1856,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2138,8 +2131,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2381,8 +2373,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2625,8 +2616,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2870,8 +2860,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3112,8 +3101,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3515,8 +3503,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3788,8 +3775,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4098,8 +4084,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4383,8 +4368,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyAssignment.ps1 b/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyAssignment.ps1 index acc8efeb8dab..5f4dfe93bd5c 100644 --- a/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyAssignment.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyAssignment.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyDefinition.ps1 b/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyDefinition.ps1 index f54f087ea7e1..986d4e345273 100644 --- a/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyDefinition.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyDefinition.ps1 @@ -179,8 +179,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyExemption.ps1 b/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyExemption.ps1 index 583949f5e1ef..c29591f5094f 100644 --- a/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyExemption.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Remove-AzPolicyExemption.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Remove-AzPolicySetDefinition.ps1 b/generated/Resources/Policy.Autorest/exports/Remove-AzPolicySetDefinition.ps1 index 2d4e66a277e4..2c652791f0a9 100644 --- a/generated/Resources/Policy.Autorest/exports/Remove-AzPolicySetDefinition.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Remove-AzPolicySetDefinition.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Update-AzPolicyAssignment.ps1 b/generated/Resources/Policy.Autorest/exports/Update-AzPolicyAssignment.ps1 index 811b37054c80..47b0b5759dcc 100644 --- a/generated/Resources/Policy.Autorest/exports/Update-AzPolicyAssignment.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Update-AzPolicyAssignment.ps1 @@ -336,8 +336,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Update-AzPolicyDefinition.ps1 b/generated/Resources/Policy.Autorest/exports/Update-AzPolicyDefinition.ps1 index 9974a717947c..72332d08dd8d 100644 --- a/generated/Resources/Policy.Autorest/exports/Update-AzPolicyDefinition.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Update-AzPolicyDefinition.ps1 @@ -204,8 +204,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Update-AzPolicyExemption.ps1 b/generated/Resources/Policy.Autorest/exports/Update-AzPolicyExemption.ps1 index 973865994cff..974eca3f6156 100644 --- a/generated/Resources/Policy.Autorest/exports/Update-AzPolicyExemption.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Update-AzPolicyExemption.ps1 @@ -243,8 +243,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/exports/Update-AzPolicySetDefinition.ps1 b/generated/Resources/Policy.Autorest/exports/Update-AzPolicySetDefinition.ps1 index dff37a137d6a..be7bab83f566 100644 --- a/generated/Resources/Policy.Autorest/exports/Update-AzPolicySetDefinition.ps1 +++ b/generated/Resources/Policy.Autorest/exports/Update-AzPolicySetDefinition.ps1 @@ -220,8 +220,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Resources/Policy.Autorest/generated/Module.cs b/generated/Resources/Policy.Autorest/generated/Module.cs index bd5a6a92e2df..523daa1db1d2 100644 --- a/generated/Resources/Policy.Autorest/generated/Module.cs +++ b/generated/Resources/Policy.Autorest/generated/Module.cs @@ -68,7 +68,7 @@ public partial class Module public static Microsoft.Azure.PowerShell.Cmdlets.Policy.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } /// The Name of this module - public string Name => @"Az.Policy"; + public string Name => @"Az.Resources"; /// The delegate to call when this module is loaded (supporting a commmon module). public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } @@ -80,7 +80,7 @@ public partial class Module public global::System.String ProfileName { get; set; } /// The ResourceID for this module (azure arm). - public string ResourceId => @"Az.Policy"; + public string ResourceId => @"Az.Resources"; /// The delegate to call in WriteObject to sanitize the output object. public SanitizerDelegate SanitizeOutput { get; set; } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_Delete.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_Delete.cs index d0a9b060e856..e429486f59a9 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_Delete.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_Delete.cs @@ -486,7 +486,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_Delete1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_Delete1.cs index 156d60f3fdf0..f7abb5e192ca 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_Delete1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_Delete1.cs @@ -473,7 +473,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_DeleteViaIdentity.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_DeleteViaIdentity.cs index 2b0f698c7af0..1c23749ce3a0 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_DeleteViaIdentity.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyAssignment_DeleteViaIdentity.cs @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_Delete.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_Delete.cs index a691a98b28bb..d9b3c49c7cc3 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_Delete.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_Delete.cs @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_Delete1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_Delete1.cs index 40c1f39cae0c..43e83ea792c5 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_Delete1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_Delete1.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentity.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentity.cs index 7ed29926776b..f64c48943939 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentity.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentity.cs @@ -478,7 +478,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -502,7 +502,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentity1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentity1.cs index c61195f266dc..bc6ec2739472 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentity1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentity1.cs @@ -478,7 +478,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -502,7 +502,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentityPolicyDefinition.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentityPolicyDefinition.cs index 60de5268dd86..41cf5be3d02d 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentityPolicyDefinition.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentityPolicyDefinition.cs @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentityPolicyDefinition1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentityPolicyDefinition1.cs index 507ad8868567..334356cffe96 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentityPolicyDefinition1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinitionVersion_DeleteViaIdentityPolicyDefinition1.cs @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_Delete.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_Delete.cs index db75f178052b..1a44a1e8dfb3 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_Delete.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_Delete.cs @@ -484,7 +484,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -508,7 +508,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_Delete1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_Delete1.cs index db931319f8e3..be1b370afbe1 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_Delete1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_Delete1.cs @@ -489,7 +489,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_DeleteViaIdentity.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_DeleteViaIdentity.cs index e85dfbdb9f2d..de76cc2c51d7 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_DeleteViaIdentity.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_DeleteViaIdentity.cs @@ -474,7 +474,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_DeleteViaIdentity1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_DeleteViaIdentity1.cs index c6430fd76fb6..4827bf3e376e 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_DeleteViaIdentity1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyDefinition_DeleteViaIdentity1.cs @@ -474,7 +474,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyExemption_Delete.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyExemption_Delete.cs index 391d387a29de..751550ee25db 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyExemption_Delete.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyExemption_Delete.cs @@ -484,7 +484,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -508,7 +508,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyExemption_DeleteViaIdentity.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyExemption_DeleteViaIdentity.cs index 7a51d03f4949..bee499b20028 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyExemption_DeleteViaIdentity.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicyExemption_DeleteViaIdentity.cs @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_Delete.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_Delete.cs index 02a6f0a6c5c2..ebb719ca87cb 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_Delete.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_Delete.cs @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_Delete1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_Delete1.cs index e5f55aaa249f..a3b8ca895365 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_Delete1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_Delete1.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentity.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentity.cs index 5e6ac2d90a94..61924db0ae6d 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentity.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentity.cs @@ -478,7 +478,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -502,7 +502,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentity1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentity1.cs index b8c92fba80e4..dacd96666dda 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentity1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentity1.cs @@ -478,7 +478,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -502,7 +502,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentityPolicySetDefinition.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentityPolicySetDefinition.cs index fb653bee8dc0..ac10c6135578 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentityPolicySetDefinition.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentityPolicySetDefinition.cs @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentityPolicySetDefinition1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentityPolicySetDefinition1.cs index 1585b1d80224..1267e3eac017 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentityPolicySetDefinition1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinitionVersion_DeleteViaIdentityPolicySetDefinition1.cs @@ -493,7 +493,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -517,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_Delete.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_Delete.cs index 0c1f7a89a734..816cfc6e6690 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_Delete.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_Delete.cs @@ -484,7 +484,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -508,7 +508,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_Delete1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_Delete1.cs index 9ade93f956b5..d77e2529d194 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_Delete1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_Delete1.cs @@ -489,7 +489,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_DeleteViaIdentity.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_DeleteViaIdentity.cs index 719808c53fce..5ae570527f73 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_DeleteViaIdentity.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_DeleteViaIdentity.cs @@ -474,7 +474,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_DeleteViaIdentity1.cs b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_DeleteViaIdentity1.cs index c2a8a1f562ba..c7d1c9ad6a95 100644 --- a/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_DeleteViaIdentity1.cs +++ b/generated/Resources/Policy.Autorest/generated/cmdlets/RemoveAzPolicySetDefinition_DeleteViaIdentity1.cs @@ -474,7 +474,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Resources/Policy.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Resources/Policy.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 344cf7490611..6e84aa988406 100644 --- a/generated/Resources/Policy.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Resources/Policy.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/Resources/Policy.Autorest/generated/runtime/Context.cs b/generated/Resources/Policy.Autorest/generated/runtime/Context.cs index d8e814c798a7..16a62da074ee 100644 --- a/generated/Resources/Policy.Autorest/generated/runtime/Context.cs +++ b/generated/Resources/Policy.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Add-AzScVmmVMDisk.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Add-AzScVmmVMDisk.ps1 index 8f7df76ebf39..809df59efce4 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Add-AzScVmmVMDisk.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Add-AzScVmmVMDisk.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Add-AzScVmmVMNic.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Add-AzScVmmVMNic.ps1 index 03f90262601d..7e18fbd99033 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Add-AzScVmmVMNic.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Add-AzScVmmVMNic.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmAvailabilitySet.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmAvailabilitySet.ps1 index 53f9a02365e1..c25a279be203 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmAvailabilitySet.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmAvailabilitySet.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmCloud.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmCloud.ps1 index 8ea96df26f48..e4644c139642 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmCloud.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmCloud.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmInventoryItem.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmInventoryItem.ps1 index 9c3ea6c7bd2f..2af184f77f38 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmInventoryItem.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmInventoryItem.ps1 @@ -187,8 +187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmServer.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmServer.ps1 index 831b518008de..c80cdf8f3c9e 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmServer.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmServer.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVM.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVM.ps1 index 9148d085f471..7f2625d82db3 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVM.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVM.ps1 @@ -115,8 +115,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMDisk.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMDisk.ps1 index 4bd056be3c9a..efe795d45a59 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMDisk.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMDisk.ps1 @@ -80,8 +80,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMExtension.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMExtension.ps1 index 2556b064f730..af5caa083fc9 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMExtension.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMExtension.ps1 @@ -128,8 +128,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMGuestAgent.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMGuestAgent.ps1 index 942e64813557..463abfbb8b5d 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMGuestAgent.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMGuestAgent.ps1 @@ -115,8 +115,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMNic.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMNic.ps1 index c64714351405..e240ef8b78de 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMNic.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMNic.ps1 @@ -80,8 +80,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMTemplate.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMTemplate.ps1 index 26c5b07e40ad..e87695207057 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMTemplate.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVMTemplate.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVirtualNetwork.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVirtualNetwork.ps1 index a917dd8069a5..e71d2ef235d6 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVirtualNetwork.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Get-AzScVmmVirtualNetwork.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmAvailabilitySet.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmAvailabilitySet.ps1 index a16cbd6fbffb..68d8a5a72862 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmAvailabilitySet.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmAvailabilitySet.ps1 @@ -182,8 +182,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmCloud.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmCloud.ps1 index 5cf9767b2871..e6b91a495918 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmCloud.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmCloud.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmServer.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmServer.ps1 index 79edef0d01b4..249204a7a0e1 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmServer.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmServer.ps1 @@ -183,8 +183,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVM.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVM.ps1 index c830232edc4b..2423dc1898f3 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVM.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVM.ps1 @@ -363,8 +363,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMCheckpoint.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMCheckpoint.ps1 index beeda3205c7b..c8ae1f4c1cb8 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMCheckpoint.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMCheckpoint.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMExtension.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMExtension.ps1 index 7f735d59f8ee..406ae634e162 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMExtension.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMExtension.ps1 @@ -208,8 +208,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMGuestAgent.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMGuestAgent.ps1 index 986215d9c377..6f6537e2da5c 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMGuestAgent.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMGuestAgent.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMTemplate.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMTemplate.ps1 index 9d3a5e7229a7..e097898ac2ad 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMTemplate.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVMTemplate.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVirtualNetwork.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVirtualNetwork.ps1 index 1afe55b8bc7f..cc582247ae9b 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVirtualNetwork.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/New-AzScVmmVirtualNetwork.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/ProxyCmdletDefinitions.ps1 index 4ef944ba6d3b..ae736544817c 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -383,8 +382,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -643,8 +641,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -871,8 +868,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1099,8 +1095,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1327,8 +1322,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1573,8 +1567,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1817,8 +1810,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2061,8 +2053,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2305,8 +2296,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2549,8 +2539,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2806,8 +2795,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3065,8 +3053,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3324,8 +3311,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3583,8 +3569,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3842,8 +3827,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4093,8 +4077,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4338,8 +4321,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4523,8 +4505,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4673,8 +4654,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4871,8 +4851,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5057,8 +5036,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5207,8 +5185,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5459,8 +5436,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5722,8 +5698,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6271,8 +6246,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6859,8 +6833,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7294,8 +7267,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7531,8 +7503,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7811,8 +7782,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8050,8 +8020,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8313,8 +8282,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8550,8 +8518,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8791,8 +8758,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9002,8 +8968,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9210,8 +9175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9418,8 +9382,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9623,8 +9586,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9864,8 +9826,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10073,8 +10034,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10320,8 +10280,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10595,8 +10554,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10845,8 +10803,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11117,8 +11074,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11357,8 +11313,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmAvailabilitySet.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmAvailabilitySet.ps1 index 260ed4713cdf..1b87105e9a39 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmAvailabilitySet.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmAvailabilitySet.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmCloud.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmCloud.ps1 index 0f0b59403ad8..f542f8c68fda 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmCloud.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmCloud.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmServer.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmServer.ps1 index 0e9ed43865ab..e13ea829a7c8 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmServer.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmServer.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVM.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVM.ps1 index 47bf629a2039..560e92ad33a4 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVM.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVM.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMCheckpoint.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMCheckpoint.ps1 index 45f88b4cf657..29641866c09f 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMCheckpoint.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMCheckpoint.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMDisk.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMDisk.ps1 index e1b137a8280c..80d4ecb75a53 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMDisk.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMDisk.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMExtension.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMExtension.ps1 index 9fab86868fe4..70f65b4ef1a0 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMExtension.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMExtension.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMNic.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMNic.ps1 index 4f2f9a5ed88e..b549485ab476 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMNic.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMNic.ps1 @@ -138,8 +138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMTemplate.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMTemplate.ps1 index cf0a454f6316..4c8e5f3bd44b 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMTemplate.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVMTemplate.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVirtualNetwork.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVirtualNetwork.ps1 index 01a30195182b..1b13dcdbb5c8 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVirtualNetwork.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Remove-AzScVmmVirtualNetwork.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Restart-AzScVmmVM.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Restart-AzScVmmVM.ps1 index b3635e77e0b9..384e8965f02b 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Restart-AzScVmmVM.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Restart-AzScVmmVM.ps1 @@ -135,8 +135,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Restore-AzScVmmVMCheckpoint.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Restore-AzScVmmVMCheckpoint.ps1 index 89a137597b5d..6eee86be1410 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Restore-AzScVmmVMCheckpoint.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Restore-AzScVmmVMCheckpoint.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Start-AzScVmmVM.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Start-AzScVmmVM.ps1 index dbcaff99ba3b..e2e8233ceaf6 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Start-AzScVmmVM.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Start-AzScVmmVM.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Stop-AzScVmmVM.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Stop-AzScVmmVM.ps1 index a696a82fe5fd..072ac0bfac7b 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Stop-AzScVmmVM.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Stop-AzScVmmVM.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmAvailabilitySet.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmAvailabilitySet.ps1 index b4a2cfa874a8..7d985558c5b7 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmAvailabilitySet.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmAvailabilitySet.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmCloud.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmCloud.ps1 index b1945d9cefc9..7a11ec558a08 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmCloud.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmCloud.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmServer.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmServer.ps1 index c2260c5ac758..9d3bcfbd9831 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmServer.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmServer.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVM.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVM.ps1 index 50930d730361..a096a4d871aa 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVM.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVM.ps1 @@ -202,8 +202,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMDisk.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMDisk.ps1 index 440a7e9dd5c6..b38c6c78e20f 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMDisk.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMDisk.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMExtension.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMExtension.ps1 index c8543667c3c9..7b5e147758e3 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMExtension.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMExtension.ps1 @@ -202,8 +202,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMNic.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMNic.ps1 index 317754948162..364b26775ede 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMNic.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMNic.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMTemplate.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMTemplate.ps1 index 0ab69567156a..50e93abd2745 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMTemplate.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVMTemplate.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVirtualNetwork.ps1 b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVirtualNetwork.ps1 index 2397fdc7c58d..a67033f271ca 100644 --- a/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVirtualNetwork.ps1 +++ b/generated/ScVmm/ScVmm.Autorest/exports/Update-AzScVmmVirtualNetwork.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 731e543fdb6a..5bdd58da05fb 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/ScVmm/ScVmm.Autorest/generated/runtime/Context.cs b/generated/ScVmm/ScVmm.Autorest/generated/runtime/Context.cs index e4e4ad256201..56aa6155d718 100644 --- a/generated/ScVmm/ScVmm.Autorest/generated/runtime/Context.cs +++ b/generated/ScVmm/ScVmm.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ScVmm.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Security/DefenderForStorage.Autorest/exports/Get-AzSecurityDefenderForStorage.ps1 b/generated/Security/DefenderForStorage.Autorest/exports/Get-AzSecurityDefenderForStorage.ps1 index 5567c522473b..17aa0a6eb179 100644 --- a/generated/Security/DefenderForStorage.Autorest/exports/Get-AzSecurityDefenderForStorage.ps1 +++ b/generated/Security/DefenderForStorage.Autorest/exports/Get-AzSecurityDefenderForStorage.ps1 @@ -94,6 +94,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -121,6 +129,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/DefenderForStorage.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Security/DefenderForStorage.Autorest/exports/ProxyCmdletDefinitions.ps1 index 00b331db98c6..a31a33df8aa1 100644 --- a/generated/Security/DefenderForStorage.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Security/DefenderForStorage.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -94,6 +94,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -121,6 +129,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -284,6 +295,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -311,6 +330,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/DefenderForStorage.Autorest/exports/Update-AzSecurityDefenderForStorage.ps1 b/generated/Security/DefenderForStorage.Autorest/exports/Update-AzSecurityDefenderForStorage.ps1 index e2abdd160e8b..897925545c5d 100644 --- a/generated/Security/DefenderForStorage.Autorest/exports/Update-AzSecurityDefenderForStorage.ps1 +++ b/generated/Security/DefenderForStorage.Autorest/exports/Update-AzSecurityDefenderForStorage.ps1 @@ -134,6 +134,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -161,6 +169,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/DefenderForStorage.Autorest/generated/Module.cs b/generated/Security/DefenderForStorage.Autorest/generated/Module.cs index aeb6668cf176..918963b42402 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/Module.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/Module.cs @@ -68,7 +68,7 @@ public partial class Module public static Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } /// The Name of this module - public string Name => @"Az.DefenderForStorage"; + public string Name => @"Az.Security"; /// The delegate to call when this module is loaded (supporting a commmon module). public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } @@ -80,7 +80,7 @@ public partial class Module public global::System.String ProfileName { get; set; } /// The ResourceID for this module (azure arm). - public string ResourceId => @"Az.DefenderForStorage"; + public string ResourceId => @"Az.Security"; /// The delegate to call in WriteObject to sanitize the output object. public SanitizerDelegate SanitizeOutput { get; set; } diff --git a/generated/Security/DefenderForStorage.Autorest/generated/api/DefenderForStorage.cs b/generated/Security/DefenderForStorage.Autorest/generated/api/DefenderForStorage.cs index a4d22cb79de7..04f1cc6a3f33 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/api/DefenderForStorage.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/api/DefenderForStorage.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage public partial class DefenderForStorage { - /// Update the Defender for Storage settings on a specified storage account. + /// update the Defender for Storage settings on a specified storage account. /// The identifier of the resource. /// Defender for Storage Settings /// a delegate that is called when the remote service returns 200 (OK). @@ -61,7 +61,7 @@ public partial class DefenderForStorage } } - /// Update the Defender for Storage settings on a specified storage account. + /// update the Defender for Storage settings on a specified storage account. /// /// Defender for Storage Settings /// a delegate that is called when the remote service returns 200 (OK). @@ -118,7 +118,7 @@ public partial class DefenderForStorage } } - /// Update the Defender for Storage settings on a specified storage account. + /// update the Defender for Storage settings on a specified storage account. /// /// Defender for Storage Settings /// an instance that will receive events. @@ -172,7 +172,7 @@ public partial class DefenderForStorage } } - /// Update the Defender for Storage settings on a specified storage account. + /// update the Defender for Storage settings on a specified storage account. /// The identifier of the resource. /// Json string supplied to the DefenderForStorageCreate operation /// a delegate that is called when the remote service returns 200 (OK). @@ -218,7 +218,7 @@ public partial class DefenderForStorage } } - /// Update the Defender for Storage settings on a specified storage account. + /// update the Defender for Storage settings on a specified storage account. /// The identifier of the resource. /// Json string supplied to the DefenderForStorageCreate operation /// an instance that will receive events. @@ -261,7 +261,7 @@ public partial class DefenderForStorage } } - /// Update the Defender for Storage settings on a specified storage account. + /// update the Defender for Storage settings on a specified storage account. /// The identifier of the resource. /// Defender for Storage Settings /// an instance that will receive events. diff --git a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/CloudError.cs b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/CloudError.cs index e763f288cd85..3e3122587dd3 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/CloudError.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/CloudError.cs @@ -40,22 +40,22 @@ public partial class CloudError : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.CloudErrorBody()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ICloudErrorBodyInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] diff --git a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/DefenderForStorageSetting.cs b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/DefenderForStorageSetting.cs index dfe654466a38..bbf728d0465c 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/DefenderForStorageSetting.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/DefenderForStorageSetting.cs @@ -29,42 +29,54 @@ public partial class DefenderForStorageSetting : /// The operation status code. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string MalwareScanningOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusCode = value ?? null; } + public string MalwareScanningOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusCode; } /// Additional information regarding the success/failure of the operation. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string MalwareScanningOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusMessage = value ?? null; } + public string MalwareScanningOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusMessage; } /// Optional. Resource id of an Event Grid Topic to send scan results to. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] public string MalwareScanningScanResultsEventGridTopicResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningScanResultsEventGridTopicResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningScanResultsEventGridTopicResourceId = value ?? null; } /// Internal Acessors for MalwareScanning - Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.MalwareScanning { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanning; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanning = value; } + Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.MalwareScanning { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanning; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanning = value ?? null /* model class */; } /// Internal Acessors for MalwareScanningOnUpload - Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOnUploadProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.MalwareScanningOnUpload { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOnUpload; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOnUpload = value; } + Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOnUploadProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.MalwareScanningOnUpload { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOnUpload; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOnUpload = value ?? null /* model class */; } /// Internal Acessors for MalwareScanningOperationStatus - Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.MalwareScanningOperationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.MalwareScanningOperationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatus = value ?? null /* model class */; } + + /// Internal Acessors for MalwareScanningOperationStatusCode + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.MalwareScanningOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusCode = value ?? null; } + + /// Internal Acessors for MalwareScanningOperationStatusMessage + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.MalwareScanningOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).MalwareScanningOperationStatusMessage = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.DefenderForStorageSettingProperties()); set { {_property = value;} } } /// Internal Acessors for SensitiveDataDiscovery - Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.SensitiveDataDiscovery { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscovery; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscovery = value; } + Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.SensitiveDataDiscovery { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscovery; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscovery = value ?? null /* model class */; } /// Internal Acessors for SensitiveDataDiscoveryOperationStatus - Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.SensitiveDataDiscoveryOperationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.SensitiveDataDiscoveryOperationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatus = value ?? null /* model class */; } + + /// Internal Acessors for SensitiveDataDiscoveryOperationStatusCode + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.SensitiveDataDiscoveryOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusCode = value ?? null; } + + /// Internal Acessors for SensitiveDataDiscoveryOperationStatusMessage + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingInternal.SensitiveDataDiscoveryOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusMessage = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IResourceInternal)__resource).Type = value ?? null; } /// Resource name [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inherited)] @@ -101,11 +113,11 @@ public partial class DefenderForStorageSetting : /// The operation status code. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string SensitiveDataDiscoveryOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusCode = value ?? null; } + public string SensitiveDataDiscoveryOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusCode; } /// Additional information regarding the success/failure of the operation. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string SensitiveDataDiscoveryOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusMessage = value ?? null; } + public string SensitiveDataDiscoveryOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal)Property).SensitiveDataDiscoveryOperationStatusMessage; } /// Resource type [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inherited)] diff --git a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/DefenderForStorageSettingProperties.cs b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/DefenderForStorageSettingProperties.cs index 8355eed0d4e2..bb536aac672a 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/DefenderForStorageSettingProperties.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/DefenderForStorageSettingProperties.cs @@ -29,11 +29,11 @@ public partial class DefenderForStorageSettingProperties : /// The operation status code. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string MalwareScanningOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusCode = value ?? null; } + public string MalwareScanningOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusCode; } /// Additional information regarding the success/failure of the operation. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string MalwareScanningOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusMessage = value ?? null; } + public string MalwareScanningOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusMessage; } /// Optional. Resource id of an Event Grid Topic to send scan results to. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] @@ -43,16 +43,28 @@ public partial class DefenderForStorageSettingProperties : Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.MalwareScanning { get => (this._malwareScanning = this._malwareScanning ?? new Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.MalwareScanningProperties()); set { {_malwareScanning = value;} } } /// Internal Acessors for MalwareScanningOnUpload - Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOnUploadProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.MalwareScanningOnUpload { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OnUpload; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OnUpload = value; } + Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOnUploadProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.MalwareScanningOnUpload { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OnUpload; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OnUpload = value ?? null /* model class */; } /// Internal Acessors for MalwareScanningOperationStatus - Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.MalwareScanningOperationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.MalwareScanningOperationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatus = value ?? null /* model class */; } + + /// Internal Acessors for MalwareScanningOperationStatusCode + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.MalwareScanningOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusCode = value ?? null; } + + /// Internal Acessors for MalwareScanningOperationStatusMessage + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.MalwareScanningOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal)MalwareScanning).OperationStatusMessage = value ?? null; } /// Internal Acessors for SensitiveDataDiscovery Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryProperties Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.SensitiveDataDiscovery { get => (this._sensitiveDataDiscovery = this._sensitiveDataDiscovery ?? new Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.SensitiveDataDiscoveryProperties()); set { {_sensitiveDataDiscovery = value;} } } /// Internal Acessors for SensitiveDataDiscoveryOperationStatus - Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.SensitiveDataDiscoveryOperationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.SensitiveDataDiscoveryOperationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatus = value ?? null /* model class */; } + + /// Internal Acessors for SensitiveDataDiscoveryOperationStatusCode + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.SensitiveDataDiscoveryOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusCode = value ?? null; } + + /// Internal Acessors for SensitiveDataDiscoveryOperationStatusMessage + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSettingPropertiesInternal.SensitiveDataDiscoveryOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusMessage = value ?? null; } /// Defines the max GB to be scanned per Month. Set to -1 if no capping is needed. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] @@ -84,11 +96,11 @@ public partial class DefenderForStorageSettingProperties : /// The operation status code. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string SensitiveDataDiscoveryOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusCode = value ?? null; } + public string SensitiveDataDiscoveryOperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusCode; } /// Additional information regarding the success/failure of the operation. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string SensitiveDataDiscoveryOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusMessage = value ?? null; } + public string SensitiveDataDiscoveryOperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal)SensitiveDataDiscovery).OperationStatusMessage; } /// Creates an new instance. public DefenderForStorageSettingProperties() diff --git a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/MalwareScanningProperties.cs b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/MalwareScanningProperties.cs index f3429d29e0ae..2e5322178fe2 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/MalwareScanningProperties.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/MalwareScanningProperties.cs @@ -19,6 +19,12 @@ public partial class MalwareScanningProperties : /// Internal Acessors for OperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal.OperationStatus { get => (this._operationStatus = this._operationStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.OperationStatus()); set { {_operationStatus = value;} } } + /// Internal Acessors for OperationStatusCode + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal.OperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code = value ?? null; } + + /// Internal Acessors for OperationStatusMessage + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IMalwareScanningPropertiesInternal.OperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message = value ?? null; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOnUploadProperties _onUpload; @@ -45,11 +51,11 @@ public partial class MalwareScanningProperties : /// The operation status code. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string OperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code = value ?? null; } + public string OperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code; } /// Additional information regarding the success/failure of the operation. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string OperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message = value ?? null; } + public string OperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message; } /// Backing field for property. private string _scanResultsEventGridTopicResourceId; diff --git a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/SensitiveDataDiscoveryProperties.cs b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/SensitiveDataDiscoveryProperties.cs index e6acfdb721ab..aa0dd6685c0f 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/api/Models/SensitiveDataDiscoveryProperties.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/api/Models/SensitiveDataDiscoveryProperties.cs @@ -23,6 +23,12 @@ public partial class SensitiveDataDiscoveryProperties : /// Internal Acessors for OperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal.OperationStatus { get => (this._operationStatus = this._operationStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.OperationStatus()); set { {_operationStatus = value;} } } + /// Internal Acessors for OperationStatusCode + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal.OperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code = value ?? null; } + + /// Internal Acessors for OperationStatusMessage + string Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.ISensitiveDataDiscoveryPropertiesInternal.OperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message = value ?? null; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatus _operationStatus; @@ -34,11 +40,11 @@ public partial class SensitiveDataDiscoveryProperties : /// The operation status code. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string OperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code = value ?? null; } + public string OperationStatusCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Code; } /// Additional information regarding the success/failure of the operation. [Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Origin(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.PropertyOrigin.Inlined)] - public string OperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message = value ?? null; } + public string OperationStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IOperationStatusInternal)OperationStatus).Message; } /// Creates an new instance. public SensitiveDataDiscoveryProperties() diff --git a/generated/Security/DefenderForStorage.Autorest/generated/cmdlets/UpdateAzSecurityDefenderForStorage_UpdateExpanded.cs b/generated/Security/DefenderForStorage.Autorest/generated/cmdlets/UpdateAzSecurityDefenderForStorage_UpdateExpanded.cs index 85ed66eaeda8..290a63fd0075 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/cmdlets/UpdateAzSecurityDefenderForStorage_UpdateExpanded.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/cmdlets/UpdateAzSecurityDefenderForStorage_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.Cmdlets; using System; - /// Update the Defender for Storage settings on a specified storage account. + /// update the Defender for Storage settings on a specified storage account. /// /// [OpenAPI] Get=>GET:"/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}" /// [OpenAPI] Create=>PUT:"/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityDefenderForStorage_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Models.IDefenderForStorageSetting))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Description(@"Update the Defender for Storage settings on a specified storage account.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Description(@"update the Defender for Storage settings on a specified storage account.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Generated] public partial class UpdateAzSecurityDefenderForStorage_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.IEventListener, diff --git a/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 06ca462297bd..8761e8606f7d 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index f39ba7823c1d..765e7c534eb9 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}}} +"; + } + return ""; + } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -248,10 +262,16 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{GetTelemetry()} +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) @@ -295,8 +315,6 @@ private string GetDefaultValuesStatements() if ("SubscriptionId".Equals(parameterName)) { sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }}"); sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{"); sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')"); sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{"); diff --git a/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 41f1b87b3927..667a9176fd9c 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -49,6 +49,7 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -83,6 +84,7 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -143,6 +145,7 @@ internal class Variant public Parameter[] Parameters { get; } public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public bool IsDoNotExport { get; } public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } @@ -165,6 +168,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); @@ -388,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 2081fc8914ec..c6d36db7be3f 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -22,6 +22,11 @@ public class DoNotExportAttribute : Attribute { } + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Class)] public class InternalExportAttribute : Attribute { diff --git a/generated/Security/DefenderForStorage.Autorest/generated/runtime/Context.cs b/generated/Security/DefenderForStorage.Autorest/generated/runtime/Context.cs index 911141cfcbe3..567e396d533e 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/runtime/Context.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Security/DefenderForStorage.Autorest/generated/runtime/MessageAttribute.cs b/generated/Security/DefenderForStorage.Autorest/generated/runtime/MessageAttribute.cs index 4250194d48ad..b8a18b455f3d 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Security/DefenderForStorage.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DefenderForStorage.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"Az.Security") ? @"Az.DefenderForStorage" : @"Az.Security"; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Security/DefenderForStorage.Autorest/generated/runtime/Properties/Resources.resx b/generated/Security/DefenderForStorage.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Security/DefenderForStorage.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Security/DefenderForStorage.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/src/NetworkCloud/NetworkCloud.Autorest/resources/README.md b/generated/Security/DefenderForStorage.Autorest/resources/README.md similarity index 100% rename from src/NetworkCloud/NetworkCloud.Autorest/resources/README.md rename to generated/Security/DefenderForStorage.Autorest/resources/README.md diff --git a/generated/Security/Security.Autorest/Properties/AssemblyInfo.cs b/generated/Security/Security.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index ba5801786e43..000000000000 --- a/generated/Security/Security.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 - Security")] -[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("1cf58c70-66d9-4ad0-b1ed-1bb42b9b9f78")] -[assembly: AssemblyVersion("1.8.0")] -[assembly: AssemblyFileVersion("1.8.0")] diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityApiCollection.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityApiCollection.ps1 index 5653568a62cc..f073facac836 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityApiCollection.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityApiCollection.ps1 @@ -154,6 +154,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -179,8 +187,6 @@ begin { List2 = 'Az.Security.private\Get-AzSecurityApiCollection_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -194,6 +200,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnector.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnector.ps1 index 53948ddb7419..2bc896876415 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnector.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnector.ps1 @@ -140,6 +140,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -164,8 +172,6 @@ begin { List1 = 'Az.Security.private\Get-AzSecurityConnector_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -179,6 +185,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrg.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrg.ps1 index 4948598b7b45..3ce96a3c791b 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrg.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrg.ps1 @@ -145,6 +145,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -168,8 +176,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorAzureDevOpsOrg_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -183,6 +189,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrgAvailable.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrgAvailable.ps1 index 17821a64fc52..84e2c34cce25 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrgAvailable.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrgAvailable.ps1 @@ -108,6 +108,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -129,8 +137,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorAzureDevOpsOrgAvailable_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -144,6 +150,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsProject.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsProject.ps1 index 15a260b4243f..380e2002d667 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsProject.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsProject.ps1 @@ -152,6 +152,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -175,8 +183,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorAzureDevOpsProject_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -190,6 +196,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsRepo.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsRepo.ps1 index 91e2a097ca37..a8ea949e15e2 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsRepo.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsRepo.ps1 @@ -159,6 +159,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -182,8 +190,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorAzureDevOpsRepo_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -197,6 +203,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorDevOpsConfiguration.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorDevOpsConfiguration.ps1 index 745a35c16795..a680b98765fd 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorDevOpsConfiguration.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorDevOpsConfiguration.ps1 @@ -139,6 +139,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -162,8 +170,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorDevOpsConfiguration_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -177,6 +183,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwner.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwner.ps1 index 14587b2856d6..41607e913858 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwner.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwner.ps1 @@ -145,6 +145,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -168,8 +176,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitHubOwner_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -183,6 +189,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwnerAvailable.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwnerAvailable.ps1 index 0db8c499edee..8e24b0bdc7cc 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwnerAvailable.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwnerAvailable.ps1 @@ -108,6 +108,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -129,8 +137,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitHubOwnerAvailable_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -144,6 +150,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubRepo.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubRepo.ps1 index 3de56f43bad5..eb6da6dfeb6f 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubRepo.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubRepo.ps1 @@ -152,6 +152,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -175,8 +183,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitHubRepo_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -190,6 +196,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroup.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroup.ps1 index b0a5405e32f9..e787b7e0e61d 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroup.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroup.ps1 @@ -145,6 +145,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -168,8 +176,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitLabGroup_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -183,6 +189,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroupAvailable.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroupAvailable.ps1 index efc71e8b819b..e122757daa7d 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroupAvailable.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroupAvailable.ps1 @@ -108,6 +108,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -129,8 +137,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitLabGroupAvailable_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -144,6 +150,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabProject.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabProject.ps1 index 92c34f02223a..5184bbbf0bef 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabProject.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabProject.ps1 @@ -152,6 +152,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -175,8 +183,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitLabProject_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -190,6 +196,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabSubgroup.ps1 b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabSubgroup.ps1 index 0d34ddb31f64..3699e3c9bdb8 100644 --- a/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabSubgroup.ps1 +++ b/generated/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabSubgroup.ps1 @@ -114,6 +114,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -135,8 +143,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitLabSubgroup_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -150,6 +156,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOffboard.ps1 b/generated/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOffboard.ps1 index e64ce936981a..3b73bcf69975 100644 --- a/generated/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOffboard.ps1 +++ b/generated/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOffboard.ps1 @@ -150,6 +150,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -172,8 +180,6 @@ begin { DeleteViaIdentity = 'Az.Security.private\Invoke-AzSecurityApiCollectionApimOffboard_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -187,6 +193,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOnboard.ps1 b/generated/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOnboard.ps1 index 543735160ecf..a65589d0a3e1 100644 --- a/generated/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOnboard.ps1 +++ b/generated/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOnboard.ps1 @@ -156,6 +156,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -178,8 +186,6 @@ begin { AzureViaIdentity = 'Az.Security.private\Invoke-AzSecurityApiCollectionApimOnboard_AzureViaIdentity'; } if (('Azure') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -193,6 +199,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityAwsEnvironmentObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityAwsEnvironmentObject.ps1 index a1f51492d7aa..5fb05afda8da 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityAwsEnvironmentObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityAwsEnvironmentObject.ps1 @@ -69,6 +69,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -96,6 +99,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityAwsOrganizationalDataMasterObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityAwsOrganizationalDataMasterObject.ps1 index da65c5f0360f..a43d6619c082 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityAwsOrganizationalDataMasterObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityAwsOrganizationalDataMasterObject.ps1 @@ -52,6 +52,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -79,6 +82,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityAwsOrganizationalDataMemberObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityAwsOrganizationalDataMemberObject.ps1 index 18cef3a47e4d..46c697f9960f 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityAwsOrganizationalDataMemberObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityAwsOrganizationalDataMemberObject.ps1 @@ -46,6 +46,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -73,6 +76,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityAzureDevOpsScopeEnvironmentObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityAzureDevOpsScopeEnvironmentObject.ps1 index 7f50f9d6d075..d2fe82be5161 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityAzureDevOpsScopeEnvironmentObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityAzureDevOpsScopeEnvironmentObject.ps1 @@ -40,6 +40,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -67,6 +70,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityConnector.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityConnector.ps1 index 58551de920d1..d8b3ce9c3c6f 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityConnector.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityConnector.ps1 @@ -236,6 +236,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -257,8 +265,6 @@ begin { CreateExpanded = 'Az.Security.private\New-AzSecurityConnector_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -272,6 +278,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityConnectorActionableRemediationObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityConnectorActionableRemediationObject.ps1 index b5f97a5dff53..d4ec1a423aa1 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityConnectorActionableRemediationObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityConnectorActionableRemediationObject.ps1 @@ -85,6 +85,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -112,6 +115,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityConnectorDevOpsConfiguration.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityConnectorDevOpsConfiguration.ps1 index b4f9ccd00104..33bd5de9f0fb 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityConnectorDevOpsConfiguration.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityConnectorDevOpsConfiguration.ps1 @@ -141,6 +141,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -162,8 +170,6 @@ begin { CreateExpanded = 'Az.Security.private\New-AzSecurityConnectorDevOpsConfiguration_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -177,6 +183,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorAwsOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorAwsOfferingObject.ps1 index bcd943f61e34..4db01bbae88e 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorAwsOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorAwsOfferingObject.ps1 @@ -46,6 +46,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -73,6 +76,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.ps1 index 01bd2869e20a..dbcab2c176be 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.ps1 @@ -40,6 +40,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -67,6 +70,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGcpOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGcpOfferingObject.ps1 index c6976b193297..4e7a00726d7e 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGcpOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGcpOfferingObject.ps1 @@ -52,6 +52,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -79,6 +82,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGitLabOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGitLabOfferingObject.ps1 index e9e3b34050f6..ad16460d47e2 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGitLabOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGitLabOfferingObject.ps1 @@ -40,6 +40,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -67,6 +70,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGithubOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGithubOfferingObject.ps1 index c06f90533acd..48654343ca74 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGithubOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityCspmMonitorGithubOfferingObject.ps1 @@ -40,6 +40,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -67,6 +70,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmAwsOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmAwsOfferingObject.ps1 index 8e40c95241a9..fba0519e429a 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmAwsOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmAwsOfferingObject.ps1 @@ -145,6 +145,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -172,6 +175,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmGcpOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmGcpOfferingObject.ps1 index f2653a6b50eb..8fd4b2276338 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmGcpOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmGcpOfferingObject.ps1 @@ -144,6 +144,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -171,6 +174,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForContainersAwsOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForContainersAwsOfferingObject.ps1 index 2c6f13c38779..3377703e444c 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForContainersAwsOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForContainersAwsOfferingObject.ps1 @@ -131,6 +131,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -158,6 +161,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForContainersGcpOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForContainersGcpOfferingObject.ps1 index 125ac12e8dd8..387f3324fbd7 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForContainersGcpOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForContainersGcpOfferingObject.ps1 @@ -124,6 +124,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -151,6 +154,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForDatabasesAwsOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForDatabasesAwsOfferingObject.ps1 index 858289e3cc13..ada9da6aa7ac 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForDatabasesAwsOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForDatabasesAwsOfferingObject.ps1 @@ -92,6 +92,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -119,6 +122,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForDatabasesGcpOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForDatabasesGcpOfferingObject.ps1 index ba0b35a83d62..ddf74c167688 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForDatabasesGcpOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForDatabasesGcpOfferingObject.ps1 @@ -74,6 +74,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -101,6 +104,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersAwsOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersAwsOfferingObject.ps1 index 4a271e8b3ff8..95814d8db435 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersAwsOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersAwsOfferingObject.ps1 @@ -142,6 +142,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -169,6 +172,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersGcpOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersGcpOfferingObject.ps1 index 4acd791a0a72..0dd57a683af1 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersGcpOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersGcpOfferingObject.ps1 @@ -134,6 +134,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -161,6 +164,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityGcpOrganizationalDataMemberObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityGcpOrganizationalDataMemberObject.ps1 index c3bd0052150d..0f21d8956d36 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityGcpOrganizationalDataMemberObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityGcpOrganizationalDataMemberObject.ps1 @@ -52,6 +52,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -79,6 +82,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityGcpOrganizationalDataOrganizationObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityGcpOrganizationalDataOrganizationObject.ps1 index 6f1d1636fea7..dea91979ed3d 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityGcpOrganizationalDataOrganizationObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityGcpOrganizationalDataOrganizationObject.ps1 @@ -58,6 +58,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -85,6 +88,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityGcpProjectEnvironmentObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityGcpProjectEnvironmentObject.ps1 index 09a43204032a..b8a1badb7258 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityGcpProjectEnvironmentObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityGcpProjectEnvironmentObject.ps1 @@ -72,6 +72,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -99,6 +102,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityGitHubScopeEnvironmentObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityGitHubScopeEnvironmentObject.ps1 index 501ec9760f4a..84b5635d70a4 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityGitHubScopeEnvironmentObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityGitHubScopeEnvironmentObject.ps1 @@ -40,6 +40,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -67,6 +70,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityGitLabScopeEnvironmentObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityGitLabScopeEnvironmentObject.ps1 index c0941917b88a..8d2c4aaa6f2f 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityGitLabScopeEnvironmentObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityGitLabScopeEnvironmentObject.ps1 @@ -40,6 +40,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -67,6 +70,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/New-AzSecurityInformationProtectionAwsOfferingObject.ps1 b/generated/Security/Security.Autorest/exports/New-AzSecurityInformationProtectionAwsOfferingObject.ps1 index 6bd70c3b75d0..8b59755a9f77 100644 --- a/generated/Security/Security.Autorest/exports/New-AzSecurityInformationProtectionAwsOfferingObject.ps1 +++ b/generated/Security/Security.Autorest/exports/New-AzSecurityInformationProtectionAwsOfferingObject.ps1 @@ -46,6 +46,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -73,6 +76,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Security/Security.Autorest/exports/ProxyCmdletDefinitions.ps1 index bd3e25342406..4ec77f8198c8 100644 --- a/generated/Security/Security.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Security/Security.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -154,6 +154,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -179,8 +187,6 @@ begin { List2 = 'Az.Security.private\Get-AzSecurityApiCollection_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -194,6 +200,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -331,6 +340,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -352,8 +369,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorAzureDevOpsOrgAvailable_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -367,6 +382,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -541,6 +559,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -564,8 +590,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorAzureDevOpsOrg_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -579,6 +603,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -760,6 +787,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -783,8 +818,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorAzureDevOpsProject_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -798,6 +831,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -986,6 +1022,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1009,8 +1053,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorAzureDevOpsRepo_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1024,6 +1066,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1192,6 +1237,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1215,8 +1268,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorDevOpsConfiguration_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1230,6 +1281,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1367,6 +1421,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1388,8 +1450,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitHubOwnerAvailable_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1403,6 +1463,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1577,6 +1640,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1600,8 +1671,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitHubOwner_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1615,6 +1684,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1796,6 +1868,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1819,8 +1899,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitHubRepo_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1834,6 +1912,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1971,6 +2052,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1992,8 +2081,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitLabGroupAvailable_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2007,6 +2094,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2181,6 +2271,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2204,8 +2302,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitLabGroup_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2219,6 +2315,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2400,6 +2499,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2423,8 +2530,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitLabProject_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2438,6 +2543,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2581,6 +2689,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2602,8 +2718,6 @@ begin { List = 'Az.Security.private\Get-AzSecurityConnectorGitLabSubgroup_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2617,6 +2731,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2786,6 +2903,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2810,8 +2935,6 @@ begin { List1 = 'Az.Security.private\Get-AzSecurityConnector_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.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2825,6 +2948,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3004,6 +3130,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3026,8 +3160,6 @@ begin { DeleteViaIdentity = 'Az.Security.private\Invoke-AzSecurityApiCollectionApimOffboard_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3041,6 +3173,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3226,6 +3361,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3248,8 +3391,6 @@ begin { AzureViaIdentity = 'Az.Security.private\Invoke-AzSecurityApiCollectionApimOnboard_AzureViaIdentity'; } if (('Azure') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3263,6 +3404,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3433,6 +3577,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3454,8 +3606,6 @@ begin { CreateExpanded = 'Az.Security.private\New-AzSecurityConnectorDevOpsConfiguration_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3469,6 +3619,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3734,6 +3887,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3755,8 +3916,6 @@ begin { CreateExpanded = 'Az.Security.private\New-AzSecurityConnector_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3770,6 +3929,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3951,6 +4113,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3973,8 +4143,6 @@ begin { DeleteViaIdentity = 'Az.Security.private\Remove-AzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3988,6 +4156,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4158,6 +4329,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4180,8 +4359,6 @@ begin { DeleteViaIdentity = 'Az.Security.private\Remove-AzSecurityConnector_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4195,6 +4372,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4393,6 +4573,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4415,8 +4603,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4430,6 +4616,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4640,6 +4829,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4662,8 +4859,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4677,6 +4872,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4899,6 +5097,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4921,8 +5127,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4936,6 +5140,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5132,6 +5339,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5154,8 +5369,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5169,6 +5382,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5390,6 +5606,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5412,8 +5636,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnector_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -5427,6 +5649,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5525,6 +5750,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5552,6 +5780,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5633,6 +5864,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5660,6 +5894,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5735,6 +5972,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5762,6 +6002,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5831,6 +6074,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5858,6 +6104,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -5972,6 +6221,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -5999,6 +6251,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6074,6 +6329,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6101,6 +6359,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6170,6 +6431,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6197,6 +6461,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6278,6 +6545,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6305,6 +6575,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6374,6 +6647,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6401,6 +6677,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6470,6 +6749,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6497,6 +6779,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6671,6 +6956,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6698,6 +6986,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -6871,6 +7162,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -6898,6 +7192,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -7058,6 +7355,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -7085,6 +7385,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -7238,6 +7541,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -7265,6 +7571,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -7386,6 +7695,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -7413,6 +7725,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -7516,6 +7831,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -7543,6 +7861,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -7714,6 +8035,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -7741,6 +8065,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -7904,6 +8231,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -7931,6 +8261,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8012,6 +8345,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8039,6 +8375,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8126,6 +8465,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8153,6 +8495,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8254,6 +8599,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8281,6 +8629,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8350,6 +8701,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8377,6 +8731,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8446,6 +8803,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8473,6 +8833,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -8548,6 +8911,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -8575,6 +8941,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Remove-AzSecurityConnector.ps1 b/generated/Security/Security.Autorest/exports/Remove-AzSecurityConnector.ps1 index def7a760fd6d..971917d361f5 100644 --- a/generated/Security/Security.Autorest/exports/Remove-AzSecurityConnector.ps1 +++ b/generated/Security/Security.Autorest/exports/Remove-AzSecurityConnector.ps1 @@ -141,6 +141,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -163,8 +171,6 @@ begin { DeleteViaIdentity = 'Az.Security.private\Remove-AzSecurityConnector_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -178,6 +184,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Remove-AzSecurityConnectorDevOpsConfiguration.ps1 b/generated/Security/Security.Autorest/exports/Remove-AzSecurityConnectorDevOpsConfiguration.ps1 index 07e9e96ee44f..7beba6f3f7bb 100644 --- a/generated/Security/Security.Autorest/exports/Remove-AzSecurityConnectorDevOpsConfiguration.ps1 +++ b/generated/Security/Security.Autorest/exports/Remove-AzSecurityConnectorDevOpsConfiguration.ps1 @@ -152,6 +152,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -174,8 +182,6 @@ begin { DeleteViaIdentity = 'Az.Security.private\Remove-AzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -189,6 +195,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnector.ps1 b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnector.ps1 index ff198dc02727..27ddaa1ce4a7 100644 --- a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnector.ps1 +++ b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnector.ps1 @@ -192,6 +192,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -214,8 +222,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnector_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -229,6 +235,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsOrg.ps1 b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsOrg.ps1 index 093c92aceec8..712723cf7d35 100644 --- a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsOrg.ps1 +++ b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsOrg.ps1 @@ -169,6 +169,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -191,8 +199,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -206,6 +212,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsProject.ps1 b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsProject.ps1 index cc4dbf11ede8..2c3c9a1c61f3 100644 --- a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsProject.ps1 +++ b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsProject.ps1 @@ -181,6 +181,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -203,8 +211,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -218,6 +224,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsRepo.ps1 b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsRepo.ps1 index 95cede6ff642..130143afae70 100644 --- a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsRepo.ps1 +++ b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsRepo.ps1 @@ -193,6 +193,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -215,8 +223,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -230,6 +236,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorDevOpsConfiguration.ps1 b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorDevOpsConfiguration.ps1 index 3ddbd42e7db5..637d0ce5163b 100644 --- a/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorDevOpsConfiguration.ps1 +++ b/generated/Security/Security.Autorest/exports/Update-AzSecurityConnectorDevOpsConfiguration.ps1 @@ -167,6 +167,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -189,8 +197,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Security.private\Update-AzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -204,6 +210,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Security/Security.Autorest/generated/api/Models/ApiCollection.cs b/generated/Security/Security.Autorest/generated/api/Models/ApiCollection.cs index 0e34b6277e2f..bd2921301514 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/ApiCollection.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/ApiCollection.cs @@ -37,46 +37,46 @@ public partial class ApiCollection : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for BaseUrl - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.BaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).BaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).BaseUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.BaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).BaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).BaseUrl = value ?? null; } /// Internal Acessors for DiscoveredVia - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.DiscoveredVia { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).DiscoveredVia; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).DiscoveredVia = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.DiscoveredVia { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).DiscoveredVia; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).DiscoveredVia = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for NumberOfApiEndpoint - long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfApiEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfApiEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfApiEndpoint = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfApiEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfApiEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfApiEndpoint = value ?? default(long); } /// Internal Acessors for NumberOfApiEndpointsWithSensitiveDataExposed - long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfApiEndpointsWithSensitiveDataExposed { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfApiEndpointsWithSensitiveDataExposed; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfApiEndpointsWithSensitiveDataExposed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfApiEndpointsWithSensitiveDataExposed { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfApiEndpointsWithSensitiveDataExposed; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfApiEndpointsWithSensitiveDataExposed = value ?? default(long); } /// Internal Acessors for NumberOfExternalApiEndpoint - long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfExternalApiEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfExternalApiEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfExternalApiEndpoint = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfExternalApiEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfExternalApiEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfExternalApiEndpoint = value ?? default(long); } /// Internal Acessors for NumberOfInactiveApiEndpoint - long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfInactiveApiEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfInactiveApiEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfInactiveApiEndpoint = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfInactiveApiEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfInactiveApiEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfInactiveApiEndpoint = value ?? default(long); } /// Internal Acessors for NumberOfUnauthenticatedApiEndpoint - long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfUnauthenticatedApiEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfUnauthenticatedApiEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfUnauthenticatedApiEndpoint = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.NumberOfUnauthenticatedApiEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfUnauthenticatedApiEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).NumberOfUnauthenticatedApiEndpoint = value ?? default(long); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ApiCollectionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SensitivityLabel - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.SensitivityLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).SensitivityLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).SensitivityLabel = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionInternal.SensitivityLabel { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).SensitivityLabel; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollectionPropertiesInternal)Property).SensitivityLabel = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Type = value ?? null; } /// Resource name [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] diff --git a/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsOrg.cs b/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsOrg.cs index 142e6ad9eda6..9754a8db53bb 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsOrg.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsOrg.cs @@ -32,22 +32,40 @@ public partial class AzureDevOpsOrg : Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AzureDevOpsOrgProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgPropertiesInternal)Property).ProvisioningStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgPropertiesInternal)Property).ProvisioningStatusMessage = value ?? null; } /// Internal Acessors for ProvisioningStatusUpdateTimeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrgInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] @@ -107,27 +125,27 @@ public partial class AzureDevOpsOrg : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsProject.cs b/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsProject.cs index 1188b53ce56d..f89c8a4735ac 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsProject.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsProject.cs @@ -29,28 +29,46 @@ public partial class AzureDevOpsProject : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } /// Internal Acessors for ProjectId - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.ProjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProjectId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.ProjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProjectId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AzureDevOpsProjectProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProvisioningStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProvisioningStatusMessage = value ?? null; } /// Internal Acessors for ProvisioningStatusUpdateTimeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProjectInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] @@ -118,27 +136,27 @@ public partial class AzureDevOpsProject : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsRepository.cs b/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsRepository.cs index 5517ecdb9de0..7a358c76d5ee 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsRepository.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/AzureDevOpsRepository.cs @@ -32,31 +32,49 @@ public partial class AzureDevOpsRepository : Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AzureDevOpsRepositoryProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).ProvisioningStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).ProvisioningStatusMessage = value ?? null; } /// Internal Acessors for ProvisioningStatusUpdateTimeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for RepoId - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.RepoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).RepoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).RepoId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.RepoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).RepoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).RepoId = value ?? null; } /// Internal Acessors for RepoUrl - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.RepoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).RepoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).RepoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.RepoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).RepoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).RepoUrl = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Visibility - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.Visibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).Visibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).Visibility = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryInternal.Visibility { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).Visibility; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepositoryPropertiesInternal)Property).Visibility = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] @@ -132,27 +150,27 @@ public partial class AzureDevOpsRepository : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Security/Security.Autorest/generated/api/Models/CloudError.cs b/generated/Security/Security.Autorest/generated/api/Models/CloudError.cs index ca226cc54240..d0dd8d2085ae 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/CloudError.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/CloudError.cs @@ -40,22 +40,22 @@ public partial class CloudError : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CloudErrorBody()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudErrorBodyInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] diff --git a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorAwsOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorAwsOffering.cs index 53efab8f2a21..de4be5689b51 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorAwsOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorAwsOffering.cs @@ -23,7 +23,7 @@ public partial class CspmMonitorAwsOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for NativeCloudConnection Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICspmMonitorAwsOfferingNativeCloudConnection Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICspmMonitorAwsOfferingInternal.NativeCloudConnection { get => (this._nativeCloudConnection = this._nativeCloudConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorAwsOfferingNativeCloudConnection()); set { {_nativeCloudConnection = value;} } } diff --git a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorAzureDevOpsOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorAzureDevOpsOffering.cs index bda86286e8d7..b347a1a0a22b 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorAzureDevOpsOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorAzureDevOpsOffering.cs @@ -23,7 +23,7 @@ public partial class CspmMonitorAzureDevOpsOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGcpOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGcpOffering.cs index 9e055a61ea6c..645a858be233 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGcpOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGcpOffering.cs @@ -23,7 +23,7 @@ public partial class CspmMonitorGcpOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for NativeCloudConnection Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICspmMonitorGcpOfferingNativeCloudConnection Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICspmMonitorGcpOfferingInternal.NativeCloudConnection { get => (this._nativeCloudConnection = this._nativeCloudConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorGcpOfferingNativeCloudConnection()); set { {_nativeCloudConnection = value;} } } diff --git a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGitLabOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGitLabOffering.cs index d0bc09d34a7f..11e474d4db55 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGitLabOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGitLabOffering.cs @@ -23,7 +23,7 @@ public partial class CspmMonitorGitLabOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGithubOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGithubOffering.cs index cd1a011cc9f8..8834a4028d7c 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGithubOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/CspmMonitorGithubOffering.cs @@ -23,7 +23,7 @@ public partial class CspmMonitorGithubOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderCspmAwsOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderCspmAwsOffering.cs index adfeaa113c24..a8a960b3cbdd 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderCspmAwsOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderCspmAwsOffering.cs @@ -116,16 +116,16 @@ public partial class DefenderCspmAwsOffering : internal Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingMdcContainersImageAssessment MdcContainersImageAssessment { get => (this._mdcContainersImageAssessment = this._mdcContainersImageAssessment ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmAwsOfferingMdcContainersImageAssessment()); set => this._mdcContainersImageAssessment = value; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for Ciem Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiem Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingInternal.Ciem { get => (this._ciem = this._ciem ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmAwsOfferingCiem()); set { {_ciem = value;} } } /// Internal Acessors for CiemDiscovery - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemDiscovery Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingInternal.CiemDiscovery { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemInternal)Ciem).CiemDiscovery; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemInternal)Ciem).CiemDiscovery = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemDiscovery Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingInternal.CiemDiscovery { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemInternal)Ciem).CiemDiscovery; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemInternal)Ciem).CiemDiscovery = value ?? null /* model class */; } /// Internal Acessors for CiemOidc - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemOidc Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingInternal.CiemOidc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemInternal)Ciem).CiemOidc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemInternal)Ciem).CiemOidc = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemOidc Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingInternal.CiemOidc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemInternal)Ciem).CiemOidc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingCiemInternal)Ciem).CiemOidc = value ?? null /* model class */; } /// Internal Acessors for DataSensitivityDiscovery Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingDataSensitivityDiscovery Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingInternal.DataSensitivityDiscovery { get => (this._dataSensitivityDiscovery = this._dataSensitivityDiscovery ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmAwsOfferingDataSensitivityDiscovery()); set { {_dataSensitivityDiscovery = value;} } } @@ -143,7 +143,7 @@ public partial class DefenderCspmAwsOffering : Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingVMScanners Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingInternal.VMScanner { get => (this._vMScanner = this._vMScanner ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmAwsOfferingVMScanners()); set { {_vMScanner = value;} } } /// Internal Acessors for VMScannerConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingVMScannersConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingInternal.VMScannerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingVMScannersInternal)VMScanner).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingVMScannersInternal)VMScanner).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingVMScannersConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingInternal.VMScannerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingVMScannersInternal)VMScanner).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingVMScannersInternal)VMScanner).Configuration = value ?? null /* model class */; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderCspmGcpOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderCspmGcpOffering.cs index 847619a31e8a..5bef401bb45b 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderCspmGcpOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderCspmGcpOffering.cs @@ -111,7 +111,7 @@ public partial class DefenderCspmGcpOffering : internal Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingMdcContainersImageAssessment MdcContainersImageAssessment { get => (this._mdcContainersImageAssessment = this._mdcContainersImageAssessment ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmGcpOfferingMdcContainersImageAssessment()); set => this._mdcContainersImageAssessment = value; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for CiemDiscovery Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingCiemDiscovery Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingInternal.CiemDiscovery { get => (this._ciemDiscovery = this._ciemDiscovery ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmGcpOfferingCiemDiscovery()); set { {_ciemDiscovery = value;} } } @@ -129,7 +129,7 @@ public partial class DefenderCspmGcpOffering : Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingVMScanners Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingInternal.VMScanner { get => (this._vMScanner = this._vMScanner ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmGcpOfferingVMScanners()); set { {_vMScanner = value;} } } /// Internal Acessors for VMScannerConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingVMScannersConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingInternal.VMScannerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingVMScannersInternal)VMScanner).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingVMScannersInternal)VMScanner).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingVMScannersConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingInternal.VMScannerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingVMScannersInternal)VMScanner).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingVMScannersInternal)VMScanner).Configuration = value ?? null /* model class */; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderForContainersAwsOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderForContainersAwsOffering.cs index 204b9b643306..dbeee25e9ecb 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderForContainersAwsOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderForContainersAwsOffering.cs @@ -142,7 +142,7 @@ public partial class DefenderForContainersAwsOffering : internal Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForContainersAwsOfferingMdcContainersImageAssessment MdcContainersImageAssessment { get => (this._mdcContainersImageAssessment = this._mdcContainersImageAssessment ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForContainersAwsOfferingMdcContainersImageAssessment()); set => this._mdcContainersImageAssessment = value; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for CloudWatchToKinesi Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForContainersAwsOfferingCloudWatchToKinesis Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForContainersAwsOfferingInternal.CloudWatchToKinesi { get => (this._cloudWatchToKinesi = this._cloudWatchToKinesi ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForContainersAwsOfferingCloudWatchToKinesis()); set { {_cloudWatchToKinesi = value;} } } diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderForContainersGcpOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderForContainersGcpOffering.cs index c58246e89518..c5b64aa24383 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderForContainersGcpOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderForContainersGcpOffering.cs @@ -90,7 +90,7 @@ public partial class DefenderForContainersGcpOffering : internal Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForContainersGcpOfferingMdcContainersImageAssessment MdcContainersImageAssessment { get => (this._mdcContainersImageAssessment = this._mdcContainersImageAssessment ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForContainersGcpOfferingMdcContainersImageAssessment()); set => this._mdcContainersImageAssessment = value; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for DataPipelineNativeCloudConnection Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForContainersGcpOfferingDataPipelineNativeCloudConnection Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForContainersGcpOfferingInternal.DataPipelineNativeCloudConnection { get => (this._dataPipelineNativeCloudConnection = this._dataPipelineNativeCloudConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection()); set { {_dataPipelineNativeCloudConnection = value;} } } diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDatabasesAwsOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDatabasesAwsOffering.cs index 6edc9de3d3f5..c8e74aa53316 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDatabasesAwsOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDatabasesAwsOffering.cs @@ -61,13 +61,13 @@ public partial class DefenderForDatabasesAwsOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for ArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderFoDatabasesAwsOfferingArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesAwsOfferingInternal.ArcAutoProvisioning { get => (this._arcAutoProvisioning = this._arcAutoProvisioning ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderFoDatabasesAwsOfferingArcAutoProvisioning()); set { {_arcAutoProvisioning = value;} } } /// Internal Acessors for ArcAutoProvisioningConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesAwsOfferingInternal.ArcAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderFoDatabasesAwsOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderFoDatabasesAwsOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesAwsOfferingInternal.ArcAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderFoDatabasesAwsOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderFoDatabasesAwsOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration = value ?? null /* model class */; } /// Internal Acessors for DatabasesDspm Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderFoDatabasesAwsOfferingDatabasesDspm Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesAwsOfferingInternal.DatabasesDspm { get => (this._databasesDspm = this._databasesDspm ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderFoDatabasesAwsOfferingDatabasesDspm()); set { {_databasesDspm = value;} } } diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDatabasesGcpOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDatabasesGcpOffering.cs index 374cf8afdbd4..0c64ceefff71 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDatabasesGcpOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDatabasesGcpOffering.cs @@ -59,13 +59,13 @@ public partial class DefenderForDatabasesGcpOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for ArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingInternal.ArcAutoProvisioning { get => (this._arcAutoProvisioning = this._arcAutoProvisioning ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForDatabasesGcpOfferingArcAutoProvisioning()); set { {_arcAutoProvisioning = value;} } } /// Internal Acessors for ArcAutoProvisioningConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingInternal.ArcAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingInternal.ArcAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration = value ?? null /* model class */; } /// Internal Acessors for DefenderForDatabasesArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForDatabasesGcpOfferingInternal.DefenderForDatabasesArcAutoProvisioning { get => (this._defenderForDatabasesArcAutoProvisioning = this._defenderForDatabasesArcAutoProvisioning ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning()); set { {_defenderForDatabasesArcAutoProvisioning = value;} } } diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsAzureDevOpsOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsAzureDevOpsOffering.cs index 65e470ca376f..b63ae71d8d53 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsAzureDevOpsOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsAzureDevOpsOffering.cs @@ -23,7 +23,7 @@ public partial class DefenderForDevOpsAzureDevOpsOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsGitLabOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsGitLabOffering.cs index a81e4a14514c..95edf6e17e21 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsGitLabOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsGitLabOffering.cs @@ -23,7 +23,7 @@ public partial class DefenderForDevOpsGitLabOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsGithubOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsGithubOffering.cs index 662b9d310db7..2d22f148f085 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsGithubOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderForDevOpsGithubOffering.cs @@ -23,7 +23,7 @@ public partial class DefenderForDevOpsGithubOffering : public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderForServersAwsOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderForServersAwsOffering.cs index 0f711382ef7b..046801939107 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderForServersAwsOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderForServersAwsOffering.cs @@ -90,13 +90,13 @@ public partial class DefenderForServersAwsOffering : public bool? MdeAutoProvisioningEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingMdeAutoProvisioningInternal)MdeAutoProvisioning).Enabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingMdeAutoProvisioningInternal)MdeAutoProvisioning).Enabled = value ?? default(bool); } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for ArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.ArcAutoProvisioning { get => (this._arcAutoProvisioning = this._arcAutoProvisioning ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersAwsOfferingArcAutoProvisioning()); set { {_arcAutoProvisioning = value;} } } /// Internal Acessors for ArcAutoProvisioningConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingArcAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.ArcAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingArcAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.ArcAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration = value ?? null /* model class */; } /// Internal Acessors for DefenderForServer Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingDefenderForServers Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.DefenderForServer { get => (this._defenderForServer = this._defenderForServer ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersAwsOfferingDefenderForServers()); set { {_defenderForServer = value;} } } @@ -111,13 +111,13 @@ public partial class DefenderForServersAwsOffering : Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVMScanners Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.VMScanner { get => (this._vMScanner = this._vMScanner ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersAwsOfferingVMScanners()); set { {_vMScanner = value;} } } /// Internal Acessors for VMScannerConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVMScannersConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.VMScannerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVMScannersInternal)VMScanner).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVMScannersInternal)VMScanner).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVMScannersConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.VMScannerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVMScannersInternal)VMScanner).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVMScannersInternal)VMScanner).Configuration = value ?? null /* model class */; } /// Internal Acessors for VaAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVaAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.VaAutoProvisioning { get => (this._vaAutoProvisioning = this._vaAutoProvisioning ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersAwsOfferingVaAutoProvisioning()); set { {_vaAutoProvisioning = value;} } } /// Internal Acessors for VaAutoProvisioningConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVaAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.VaAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVaAutoProvisioningInternal)VaAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVaAutoProvisioningInternal)VaAutoProvisioning).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVaAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingInternal.VaAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVaAutoProvisioningInternal)VaAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVaAutoProvisioningInternal)VaAutoProvisioning).Configuration = value ?? null /* model class */; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/DefenderForServersGcpOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/DefenderForServersGcpOffering.cs index 05cbf2bb6644..e3eb85bc81e3 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DefenderForServersGcpOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DefenderForServersGcpOffering.cs @@ -86,13 +86,13 @@ public partial class DefenderForServersGcpOffering : public bool? MdeAutoProvisioningEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingMdeAutoProvisioningInternal)MdeAutoProvisioning).Enabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingMdeAutoProvisioningInternal)MdeAutoProvisioning).Enabled = value ?? default(bool); } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for ArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingArcAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.ArcAutoProvisioning { get => (this._arcAutoProvisioning = this._arcAutoProvisioning ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersGcpOfferingArcAutoProvisioning()); set { {_arcAutoProvisioning = value;} } } /// Internal Acessors for ArcAutoProvisioningConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingArcAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.ArcAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingArcAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.ArcAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingArcAutoProvisioningInternal)ArcAutoProvisioning).Configuration = value ?? null /* model class */; } /// Internal Acessors for DefenderForServer Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingDefenderForServers Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.DefenderForServer { get => (this._defenderForServer = this._defenderForServer ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersGcpOfferingDefenderForServers()); set { {_defenderForServer = value;} } } @@ -107,13 +107,13 @@ public partial class DefenderForServersGcpOffering : Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVMScanners Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.VMScanner { get => (this._vMScanner = this._vMScanner ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersGcpOfferingVMScanners()); set { {_vMScanner = value;} } } /// Internal Acessors for VMScannerConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVMScannersConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.VMScannerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVMScannersInternal)VMScanner).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVMScannersInternal)VMScanner).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVMScannersConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.VMScannerConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVMScannersInternal)VMScanner).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVMScannersInternal)VMScanner).Configuration = value ?? null /* model class */; } /// Internal Acessors for VaAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVaAutoProvisioning Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.VaAutoProvisioning { get => (this._vaAutoProvisioning = this._vaAutoProvisioning ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersGcpOfferingVaAutoProvisioning()); set { {_vaAutoProvisioning = value;} } } /// Internal Acessors for VaAutoProvisioningConfiguration - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVaAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.VaAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVaAutoProvisioningInternal)VaAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVaAutoProvisioningInternal)VaAutoProvisioning).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVaAutoProvisioningConfiguration Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingInternal.VaAutoProvisioningConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVaAutoProvisioningInternal)VaAutoProvisioning).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVaAutoProvisioningInternal)VaAutoProvisioning).Configuration = value ?? null /* model class */; } /// The type of the security offering. [Microsoft.Azure.PowerShell.Cmdlets.Security.Constant] diff --git a/generated/Security/Security.Autorest/generated/api/Models/DevOpsConfiguration.cs b/generated/Security/Security.Autorest/generated/api/Models/DevOpsConfiguration.cs index a644dd42c70e..e386d09801b0 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/DevOpsConfiguration.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/DevOpsConfiguration.cs @@ -37,28 +37,46 @@ public partial class DevOpsConfiguration : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } /// Internal Acessors for Authorization - Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAuthorization Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.Authorization { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).Authorization; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).Authorization = value; } + Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAuthorization Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.Authorization { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).Authorization; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).Authorization = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DevOpsConfigurationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).ProvisioningStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).ProvisioningStatusMessage = value ?? null; } /// Internal Acessors for ProvisioningStatusUpdateTimeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfigurationInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] @@ -106,27 +124,27 @@ public partial class DevOpsConfiguration : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// List of top-level inventory to select when AutoDiscovery is disabled. diff --git a/generated/Security/Security.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Security/Security.Autorest/generated/api/Models/ErrorResponse.cs index c4b6f10af334..099b35bb87cd 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] diff --git a/generated/Security/Security.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs b/generated/Security/Security.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs index 6153a7835d86..b68daf8b4eb2 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs @@ -40,22 +40,22 @@ public partial class ErrorResponseAutoGenerated : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ErrorDetailAutoGenerated()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorResponseAutoGeneratedInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailAutoGeneratedInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] diff --git a/generated/Security/Security.Autorest/generated/api/Models/GcpProjectEnvironment.cs b/generated/Security/Security.Autorest/generated/api/Models/GcpProjectEnvironment.cs index a9e1b44d9ca2..4189342957ef 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/GcpProjectEnvironment.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/GcpProjectEnvironment.cs @@ -28,10 +28,10 @@ public partial class GcpProjectEnvironment : Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectDetails Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectEnvironmentInternal.ProjectDetail { get => (this._projectDetail = this._projectDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GcpProjectDetails()); set { {_projectDetail = value;} } } /// Internal Acessors for ProjectDetailProjectName - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectEnvironmentInternal.ProjectDetailProjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectDetailsInternal)ProjectDetail).ProjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectDetailsInternal)ProjectDetail).ProjectName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectEnvironmentInternal.ProjectDetailProjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectDetailsInternal)ProjectDetail).ProjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectDetailsInternal)ProjectDetail).ProjectName = value ?? null; } /// Internal Acessors for ProjectDetailWorkloadIdentityPoolId - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectEnvironmentInternal.ProjectDetailWorkloadIdentityPoolId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectDetailsInternal)ProjectDetail).WorkloadIdentityPoolId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectDetailsInternal)ProjectDetail).WorkloadIdentityPoolId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectEnvironmentInternal.ProjectDetailWorkloadIdentityPoolId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectDetailsInternal)ProjectDetail).WorkloadIdentityPoolId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpProjectDetailsInternal)ProjectDetail).WorkloadIdentityPoolId = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGcpOrganizationalData _organizationalData; diff --git a/generated/Security/Security.Autorest/generated/api/Models/GitHubOwner.cs b/generated/Security/Security.Autorest/generated/api/Models/GitHubOwner.cs index 8c435916e432..8cfecccd92d0 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/GitHubOwner.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/GitHubOwner.cs @@ -29,31 +29,49 @@ public partial class GitHubOwner : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } /// Internal Acessors for GitHubInternalId - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.GitHubInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).GitHubInternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).GitHubInternalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.GitHubInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).GitHubInternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).GitHubInternalId = value ?? null; } /// Internal Acessors for OwnerUrl - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.OwnerUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).OwnerUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).OwnerUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.OwnerUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).OwnerUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).OwnerUrl = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GitHubOwnerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).ProvisioningStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).ProvisioningStatusMessage = value ?? null; } /// Internal Acessors for ProvisioningStatusUpdateTimeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubOwnerInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] @@ -117,27 +135,27 @@ public partial class GitHubOwner : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Security/Security.Autorest/generated/api/Models/GitHubRepository.cs b/generated/Security/Security.Autorest/generated/api/Models/GitHubRepository.cs index 6c8c65011955..02b031ee68c9 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/GitHubRepository.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/GitHubRepository.cs @@ -28,34 +28,52 @@ public partial class GitHubRepository : Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GitHubRepositoryProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).ProvisioningStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).ProvisioningStatusMessage = value ?? null; } /// Internal Acessors for ProvisioningStatusUpdateTimeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for RepoFullName - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.RepoFullName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoFullName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoFullName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.RepoFullName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoFullName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoFullName = value ?? null; } /// Internal Acessors for RepoId - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.RepoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.RepoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoId = value ?? null; } /// Internal Acessors for RepoName - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.RepoName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.RepoName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoName = value ?? null; } /// Internal Acessors for RepoUrl - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.RepoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.RepoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryPropertiesInternal)Property).RepoUrl = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitHubRepositoryInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] @@ -147,27 +165,27 @@ public partial class GitHubRepository : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Security/Security.Autorest/generated/api/Models/GitLabGroup.cs b/generated/Security/Security.Autorest/generated/api/Models/GitLabGroup.cs index 43bccf2a7569..ac9c2f046537 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/GitLabGroup.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/GitLabGroup.cs @@ -41,34 +41,52 @@ public partial class GitLabGroup : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } /// Internal Acessors for FullyQualifiedFriendlyName - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.FullyQualifiedFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).FullyQualifiedFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).FullyQualifiedFriendlyName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.FullyQualifiedFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).FullyQualifiedFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).FullyQualifiedFriendlyName = value ?? null; } /// Internal Acessors for FullyQualifiedName - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.FullyQualifiedName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).FullyQualifiedName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).FullyQualifiedName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.FullyQualifiedName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).FullyQualifiedName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).FullyQualifiedName = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GitLabGroupProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).ProvisioningStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).ProvisioningStatusMessage = value ?? null; } /// Internal Acessors for ProvisioningStatusUpdateTimeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Url - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.Url { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).Url; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).Url = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupInternal.Url { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).Url; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabGroupPropertiesInternal)Property).Url = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] @@ -128,27 +146,27 @@ public partial class GitLabGroup : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Security/Security.Autorest/generated/api/Models/GitLabProject.cs b/generated/Security/Security.Autorest/generated/api/Models/GitLabProject.cs index acbae4410f7b..8012db403f12 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/GitLabProject.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/GitLabProject.cs @@ -49,37 +49,55 @@ public partial class GitLabProject : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; } /// Internal Acessors for FullyQualifiedFriendlyName - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.FullyQualifiedFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedFriendlyName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.FullyQualifiedFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedFriendlyName = value ?? null; } /// Internal Acessors for FullyQualifiedName - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.FullyQualifiedName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.FullyQualifiedName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedName = value ?? null; } /// Internal Acessors for FullyQualifiedParentGroupName - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.FullyQualifiedParentGroupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedParentGroupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedParentGroupName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.FullyQualifiedParentGroupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedParentGroupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).FullyQualifiedParentGroupName = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GitLabProjectProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningStatusMessage - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).ProvisioningStatusMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.ProvisioningStatusMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).ProvisioningStatusMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).ProvisioningStatusMessage = value ?? null; } /// Internal Acessors for ProvisioningStatusUpdateTimeUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.ProvisioningStatusUpdateTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).ProvisioningStatusUpdateTimeUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Url - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.Url { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).Url; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).Url = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectInternal.Url { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).Url; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IGitLabProjectPropertiesInternal)Property).Url = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] @@ -139,27 +157,27 @@ public partial class GitLabProject : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Security/Security.Autorest/generated/api/Models/InformationProtectionAwsOffering.cs b/generated/Security/Security.Autorest/generated/api/Models/InformationProtectionAwsOffering.cs index 44b06b4e276d..ec59e468da47 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/InformationProtectionAwsOffering.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/InformationProtectionAwsOffering.cs @@ -34,7 +34,7 @@ public partial class InformationProtectionAwsOffering : public string InformationProtectionCloudRoleArn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IInformationProtectionAwsOfferingInformationProtectionInternal)InformationProtection).CloudRoleArn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IInformationProtectionAwsOfferingInformationProtectionInternal)InformationProtection).CloudRoleArn = value ?? null; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOfferingInternal)__cloudOffering).Description = value ?? null; } /// Internal Acessors for InformationProtection Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IInformationProtectionAwsOfferingInformationProtection Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IInformationProtectionAwsOfferingInternal.InformationProtection { get => (this._informationProtection = this._informationProtection ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.InformationProtectionAwsOfferingInformationProtection()); set { {_informationProtection = value;} } } diff --git a/generated/Security/Security.Autorest/generated/api/Models/OperationStatusResult.cs b/generated/Security/Security.Autorest/generated/api/Models/OperationStatusResult.cs index 123a2232c3d8..9156addb9757 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/OperationStatusResult.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/OperationStatusResult.cs @@ -51,22 +51,22 @@ public partial class OperationStatusResult : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IOperationStatusResultInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/Security/Security.Autorest/generated/api/Models/ProxyResource.cs b/generated/Security/Security.Autorest/generated/api/Models/ProxyResource.cs index 55521cdfcc7a..5cdb717c79c5 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/ProxyResource.cs @@ -28,13 +28,13 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] diff --git a/generated/Security/Security.Autorest/generated/api/Models/SecurityConnector.cs b/generated/Security/Security.Autorest/generated/api/Models/SecurityConnector.cs index e608756ebde5..bdf9912336c5 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/SecurityConnector.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/SecurityConnector.cs @@ -65,16 +65,16 @@ public partial class SecurityConnector : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureTrackedResourceLocationInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureTrackedResourceLocationInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for HierarchyIdentifierTrialEndDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.HierarchyIdentifierTrialEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorPropertiesInternal)Property).HierarchyIdentifierTrialEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorPropertiesInternal)Property).HierarchyIdentifierTrialEndDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.HierarchyIdentifierTrialEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorPropertiesInternal)Property).HierarchyIdentifierTrialEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorPropertiesInternal)Property).HierarchyIdentifierTrialEndDate = value ?? default(global::System.DateTime); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorProperties Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SecurityConnectorProperties()); set { {_property = value;} } } @@ -82,6 +82,24 @@ public partial class SecurityConnector : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Security.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Resource name [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.Security.FormatTable(Index = 0)] @@ -118,32 +136,32 @@ public partial class SecurityConnector : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Security.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Security.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Security.DoNotFormat] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Security.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Security.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.Security.DoNotFormat] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// A list of key value pairs that describe the resource. [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] diff --git a/generated/Security/Security.Autorest/generated/api/Models/TrackedResource.cs b/generated/Security/Security.Autorest/generated/api/Models/TrackedResource.cs index 31118a10f16e..5b4c62bdb360 100644 --- a/generated/Security/Security.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Security/Security.Autorest/generated/api/Models/TrackedResource.cs @@ -58,13 +58,13 @@ public partial class TrackedResource : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureTrackedResourceLocationInternal)__azureTrackedResourceLocation).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureTrackedResourceLocationInternal)__azureTrackedResourceLocation).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IResourceInternal)__resource).Type = value ?? null; } /// Resource name [Microsoft.Azure.PowerShell.Cmdlets.Security.Origin(Microsoft.Azure.PowerShell.Cmdlets.Security.PropertyOrigin.Inherited)] diff --git a/generated/Security/Security.Autorest/generated/api/Security.cs b/generated/Security/Security.Autorest/generated/api/Security.cs index 6cfe966c7265..aa3e8915ff88 100644 --- a/generated/Security/Security.Autorest/generated/api/Security.cs +++ b/generated/Security/Security.Autorest/generated/api/Security.cs @@ -1790,13 +1790,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -1947,13 +1947,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -2106,7 +2106,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -2158,7 +2158,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// /// The Azure DevOps organization resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -2220,7 +2220,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// /// The Azure DevOps organization resource payload. /// an instance that will receive events. @@ -2280,7 +2280,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -2331,7 +2331,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -2380,7 +2380,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -2447,13 +2447,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -2601,13 +2601,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -3753,7 +3753,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -3805,7 +3805,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// /// The Azure DevOps organization resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -3867,7 +3867,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// /// The Azure DevOps organization resource payload. /// an instance that will receive events. @@ -3927,7 +3927,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -3978,7 +3978,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4027,7 +4027,7 @@ public partial class Security } } - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4092,13 +4092,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -4246,13 +4246,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -4400,7 +4400,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4455,7 +4455,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// /// The Azure DevOps project resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -4520,7 +4520,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// /// The Azure DevOps project resource payload. /// an instance that will receive events. @@ -4583,7 +4583,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4637,7 +4637,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4689,7 +4689,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4759,13 +4759,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -4913,13 +4913,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -5759,7 +5759,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -5814,7 +5814,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// /// The Azure DevOps project resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -5879,7 +5879,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// /// The Azure DevOps project resource payload. /// an instance that will receive events. @@ -5942,7 +5942,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -5996,7 +5996,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6048,7 +6048,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6118,13 +6118,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -6272,13 +6272,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -6428,7 +6428,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6486,7 +6486,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// /// The Azure DevOps repository resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -6554,7 +6554,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// /// The Azure DevOps repository resource payload. /// an instance that will receive events. @@ -6620,7 +6620,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6677,7 +6677,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6732,7 +6732,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6805,13 +6805,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -6959,13 +6959,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -7835,7 +7835,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -7893,7 +7893,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// /// The Azure DevOps repository resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -7961,7 +7961,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// /// The Azure DevOps repository resource payload. /// an instance that will receive events. @@ -8027,7 +8027,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8084,7 +8084,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8139,7 +8139,7 @@ public partial class Security } } - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8210,13 +8210,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -8364,13 +8364,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -8522,7 +8522,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8572,7 +8572,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// /// The DevOps configuration resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -8632,7 +8632,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// /// The DevOps configuration resource payload. /// an instance that will receive events. @@ -8690,7 +8690,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8739,7 +8739,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8786,7 +8786,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8851,13 +8851,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -9005,13 +9005,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -9275,13 +9275,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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"); @@ -10086,7 +10086,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -10136,7 +10136,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// /// The DevOps configuration resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -10196,7 +10196,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// /// The DevOps configuration resource payload. /// an instance that will receive events. @@ -10254,7 +10254,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -10303,7 +10303,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -10350,7 +10350,7 @@ public partial class Security } } - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -10415,13 +10415,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -10569,13 +10569,13 @@ public partial class Security global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Security.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: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -14800,7 +14800,7 @@ public partial class Security } /// - /// Update a security connector. If a security connector is already created and a subsequent request is issued for the same + /// update a security connector. If a security connector is already created and a subsequent request is issued for the same /// security connector id, then it will be updated. /// /// Azure subscription ID @@ -14853,7 +14853,7 @@ public partial class Security } /// - /// Update a security connector. If a security connector is already created and a subsequent request is issued for the same + /// update a security connector. If a security connector is already created and a subsequent request is issued for the same /// security connector id, then it will be updated. /// /// @@ -14916,7 +14916,7 @@ public partial class Security } /// - /// Update a security connector. If a security connector is already created and a subsequent request is issued for the same + /// update a security connector. If a security connector is already created and a subsequent request is issued for the same /// security connector id, then it will be updated. /// /// @@ -14976,7 +14976,7 @@ public partial class Security } /// - /// Update a security connector. If a security connector is already created and a subsequent request is issued for the same + /// update a security connector. If a security connector is already created and a subsequent request is issued for the same /// security connector id, then it will be updated. /// /// Azure subscription ID @@ -15028,7 +15028,7 @@ public partial class Security } /// - /// Update a security connector. If a security connector is already created and a subsequent request is issued for the same + /// update a security connector. If a security connector is already created and a subsequent request is issued for the same /// security connector id, then it will be updated. /// /// Azure subscription ID @@ -15077,7 +15077,7 @@ public partial class Security } /// - /// Update a security connector. If a security connector is already created and a subsequent request is issued for the same + /// update a security connector. If a security connector is already created and a subsequent request is issued for the same /// security connector id, then it will be updated. /// /// Azure subscription ID @@ -16419,7 +16419,7 @@ public partial class Security } } - /// Update a security connector + /// update a security connector /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. /// The security connector name. @@ -16468,7 +16468,7 @@ public partial class Security } } - /// Update a security connector + /// update a security connector /// /// The security connector resource /// a delegate that is called when the remote service returns 200 (OK). @@ -16527,7 +16527,7 @@ public partial class Security } } - /// Update a security connector + /// update a security connector /// /// The security connector resource /// an instance that will receive events. @@ -16584,7 +16584,7 @@ public partial class Security } } - /// Update a security connector + /// update a security connector /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. /// The security connector name. @@ -16632,7 +16632,7 @@ public partial class Security } } - /// Update a security connector + /// update a security connector /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. /// The security connector name. @@ -16678,7 +16678,7 @@ public partial class Security } } - /// Update a security connector + /// update a security connector /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. /// The security connector name. diff --git a/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_Delete.cs b/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_Delete.cs index 565ce28a41b1..dfda0e0ee6bf 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_Delete.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_Delete.cs @@ -514,7 +514,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -538,7 +538,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_DeleteViaIdentity.cs b/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_DeleteViaIdentity.cs index 4760c4af0a86..73da57a1752b 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_DeleteViaIdentity.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_DeleteViaIdentity.cs @@ -482,7 +482,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -506,7 +506,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_Azure.cs b/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_Azure.cs index bcfd9d3d618f..6aba16bbcc49 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_Azure.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_Azure.cs @@ -43,15 +43,6 @@ public partial class InvokeAzSecurityApiCollectionApimOnboard_Azure : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _apiId; @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.InvokeAzSecurityApiCo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_AzureViaIdentity.cs b/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_AzureViaIdentity.cs index 9e15c3b42dd1..7d5d63980a88 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_AzureViaIdentity.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_AzureViaIdentity.cs @@ -43,15 +43,6 @@ public partial class InvokeAzSecurityApiCollectionApimOnboard_AzureViaIdentity : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Runtime)] @@ -208,11 +199,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.InvokeAzSecurityApiCo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -552,24 +538,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IApiCollection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded.cs index 6f5fe1337643..a79344025a2e 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Create a DevOps Configuration. + /// create a DevOps Configuration. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSecurityConnectorDevOpsConfiguration_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Create a DevOps Configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"create a DevOps Configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", ApiVersion = "2023-09-01-preview")] public partial class NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Runtime)] @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.NewAzSecurityConnecto /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -632,24 +618,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnector_CreateExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnector_CreateExpanded.cs index c0bbba1c4e88..909edf677931 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnector_CreateExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnector_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using System; /// - /// Create a security connector. If a security connector is already created and a subsequent request is issued for the same + /// create a security connector. If a security connector is already created and a subsequent request is issued for the same /// security connector id, then it will be updated. /// /// @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSecurityConnector_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnector))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Create a security connector. If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"create a security connector. If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzSecurityConnector_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_Delete.cs b/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_Delete.cs index 2d0b985d3a2a..21ea010c1b4b 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_Delete.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzSecurityConnectorDevOpsConfiguration_Delete : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.RemoveAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -576,7 +562,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -600,7 +586,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity.cs b/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity.cs index b4c26102225b..4e142ffb0a23 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzSecurityConnectorDevOpsConfiguration_DeleteViaIdent /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.RemoveAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -557,7 +543,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -581,7 +567,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_Delete.cs b/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_Delete.cs index aebd6f014b31..85a0ffcd6f84 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_Delete.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_Delete.cs @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -521,7 +521,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_DeleteViaIdentity.cs b/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_DeleteViaIdentity.cs index eafab595bda9..5ac20f842dc0 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_DeleteViaIdentity.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_DeleteViaIdentity.cs @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded.cs index 8917ae5e6362..9bbd2102a57f 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsOrg_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrg))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update monitored Azure DevOps organization details.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update monitored Azure DevOps organization details.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Configuration payload for PR Annotations. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Configuration payload for PR Annotations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Body)] @@ -310,11 +301,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.UpdateAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ public UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrg var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded.cs index 4d06894b7634..f36bce570d8c 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update monitored Azure DevOps organization details. + /// update monitored Azure DevOps organization details. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrg))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update monitored Azure DevOps organization details.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update monitored Azure DevOps organization details.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityEx /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Configuration payload for PR Annotations. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Configuration payload for PR Annotations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Body)] @@ -255,11 +246,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.UpdateAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -608,24 +594,7 @@ public UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrg var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded.cs index 62d439098895..803e1686fb62 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsProject_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProject))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a monitored Azure DevOps project resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update a monitored Azure DevOps project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Configuration payload for PR Annotations. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Configuration payload for PR Annotations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Body)] @@ -338,11 +329,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.UpdateAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -666,24 +652,7 @@ public UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProject var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded.cs index 779e61336c91..9078071184ee 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update a monitored Azure DevOps project resource. + /// update a monitored Azure DevOps project resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProject))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a monitored Azure DevOps project resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update a monitored Azure DevOps project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdenti /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Configuration payload for PR Annotations. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Configuration payload for PR Annotations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Body)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.UpdateAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ public UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProject var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded.cs index f017b18440b8..0b5fda53cf52 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsRepo_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepository))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a monitored Azure DevOps repository resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update a monitored Azure DevOps repository resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Configuration payload for PR Annotations. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Configuration payload for PR Annotations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Body)] @@ -362,11 +353,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.UpdateAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -690,24 +676,7 @@ public UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepository var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded.cs index 20c78a0d5bdb..bd2c96538922 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update a monitored Azure DevOps repository resource. + /// update a monitored Azure DevOps repository resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepository))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a monitored Azure DevOps repository resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update a monitored Azure DevOps repository resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityE /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Configuration payload for PR Annotations. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Configuration payload for PR Annotations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Body)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.UpdateAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ public UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepository var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded.cs index 109fb8828a8e..6899678e26f0 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorDevOpsConfiguration_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a DevOps Configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update a DevOps Configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Runtime)] @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.UpdateAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -632,24 +618,7 @@ public UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded.cs index abb53a0b7878..1f77de485a09 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update a DevOps Configuration. + /// update a DevOps Configuration. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a DevOps Configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update a DevOps Configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -43,15 +43,6 @@ public partial class UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdent /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.Security.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Security.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets.UpdateAzSecurityConne /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -611,24 +597,7 @@ public UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfiguration var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateExpanded.cs index f9994aa6db01..e41694117c2d 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update a security connector + /// update a security connector /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnector_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnector))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a security connector")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update a security connector")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzSecurityConnector_UpdateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateViaIdentityExpanded.cs b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateViaIdentityExpanded.cs index 680d9930127e..2a36a05d9431 100644 --- a/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateViaIdentityExpanded.cs +++ b/generated/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Update a security connector + /// update a security connector /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnector_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnector))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a security connector")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"update a security connector")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzSecurityConnector_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 7fde138b60d5..6f35207386f0 100644 --- a/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index a0ec42a32ca6..f9eabea2c77f 100644 --- a/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetLoginVerification() + { + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + { + return $@" +{Indent}{Indent}$context = Get-AzContext +{Indent}{Indent}if (-not $context -and -not $testPlayback) {{ +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" +{Indent}{Indent}}} +"; + } + return ""; + } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -248,10 +262,16 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName -{GetTelemetry()} +{Indent}{Indent} +{Indent}{Indent}$testPlayback = $false +{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }} +{GetLoginVerification()}{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}if ($wrappedCmd -eq $null) {{ +{Indent}{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) +{Indent}{Indent}}} {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) @@ -295,8 +315,6 @@ private string GetDefaultValuesStatements() if ("SubscriptionId".Equals(parameterName)) { sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }}"); sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{"); sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')"); sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{"); diff --git a/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 2eda4faea313..537e45584dc8 100644 --- a/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Security/Security.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -49,6 +49,7 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -83,6 +84,7 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; + IsModelCmdlet = Variants.All(v => v.IsModelCmdlet); OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -143,6 +145,7 @@ internal class Variant public Parameter[] Parameters { get; } public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } + public bool IsModelCmdlet { get; } public bool IsDoNotExport { get; } public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } @@ -165,6 +168,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsModelCmdlet = Attributes.OfType().Any(); IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); @@ -388,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/Security/Security.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Security/Security.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 99a703bf105c..1befd1645006 100644 --- a/generated/Security/Security.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Security/Security.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -22,6 +22,11 @@ public class DoNotExportAttribute : Attribute { } + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class ModelCmdletAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Class)] public class InternalExportAttribute : Attribute { diff --git a/generated/Security/Security.Autorest/generated/runtime/Context.cs b/generated/Security/Security.Autorest/generated/runtime/Context.cs index 20473c3cb46a..22e5a4f67c40 100644 --- a/generated/Security/Security.Autorest/generated/runtime/Context.cs +++ b/generated/Security/Security.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/Security/Security.Autorest/generated/runtime/MessageAttribute.cs b/generated/Security/Security.Autorest/generated/runtime/MessageAttribute.cs index 6256f761c04a..d3273a7e9026 100644 --- a/generated/Security/Security.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Security/Security.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.Security" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/Security/Security.Autorest/generated/runtime/Properties/Resources.resx b/generated/Security/Security.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Security/Security.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Security/Security.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/src/NetworkFunction/NetworkFunction.Autorest/resources/README.md b/generated/Security/Security.Autorest/resources/README.md similarity index 100% rename from src/NetworkFunction/NetworkFunction.Autorest/resources/README.md rename to generated/Security/Security.Autorest/resources/README.md diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiagnostic.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiagnostic.ps1 index 6e147bf46149..8f3cdd747fd8 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiagnostic.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiagnostic.ps1 @@ -128,8 +128,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiscoverySolution.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiscoverySolution.ps1 index 258b64f5d26f..38f842e1d977 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiscoverySolution.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpDiscoverySolution.ps1 @@ -110,8 +110,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSimplifiedSolution.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSimplifiedSolution.ps1 index 0d5af46a0f3d..5f6589d2729a 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSimplifiedSolution.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSimplifiedSolution.ps1 @@ -130,8 +130,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolution.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolution.ps1 index 51f602ba0e54..dffc51c72aeb 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolution.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolution.ps1 @@ -128,8 +128,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolutionSelfHelp.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolutionSelfHelp.ps1 index 165ecc140c78..80e8cce7b201 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolutionSelfHelp.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpSolutionSelfHelp.ps1 @@ -124,8 +124,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpTroubleshooter.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpTroubleshooter.ps1 index e7397a6474fa..fbcd2fa76002 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpTroubleshooter.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Get-AzSelfHelpTroubleshooter.ps1 @@ -130,8 +130,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpCheckNameAvailability.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpCheckNameAvailability.ps1 index a262ccfdd55c..6010fb488f16 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpCheckNameAvailability.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpCheckNameAvailability.ps1 @@ -144,8 +144,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpContinueTroubleshooter.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpContinueTroubleshooter.ps1 index 32d4e32e5aea..fb2005b6504a 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpContinueTroubleshooter.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpContinueTroubleshooter.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.ps1 index bd0bc3e87a70..d539f0d09a6e 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope.ps1 @@ -156,8 +156,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.ps1 index 9eaf124ce605..3a6c44e92401 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope.ps1 @@ -148,8 +148,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpWarmSolutionUp.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpWarmSolutionUp.ps1 index 1c27efdc358e..d06406b67c1d 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpWarmSolutionUp.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Invoke-AzSelfHelpWarmSolutionUp.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpDiagnostic.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpDiagnostic.ps1 index 8c5516ca0301..8ca57d97220c 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpDiagnostic.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpDiagnostic.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. +Create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.

Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API. .Description -create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. +Create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.

Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API. .Example $insightsToInvoke = [ordered]@{ @@ -182,8 +182,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1 index 05882d89c11a..506d7f9860b8 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1 @@ -16,13 +16,13 @@ <# .Synopsis -create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.

Note:
1. ‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API.
.Description -create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.

Note:
1. ‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API. @@ -185,8 +185,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1 index 2587289a1f80..2555d54c8014 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1 @@ -16,7 +16,7 @@ <# .Synopsis -create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues. These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address a specific support problem area. @@ -28,7 +28,7 @@ In the absence of the ‘requiredParameters’ it is likely that some of the sol ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the request for diagnostics
3. ‘requiredParameters’ from the Solutions response is the same as ‘properties.parameters’ in the request for Troubleshooters .Description -create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues. These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address a specific support problem area. @@ -205,8 +205,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1 index 4432e3f0f701..7bf8fceb5a4d 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1 @@ -16,13 +16,13 @@ <# .Synopsis -create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. +Create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes. These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers. Troubleshooters terminate at a well curated solution based off of resource backend signals and customer manual selections. .Description -create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. +Create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes. These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers. @@ -172,8 +172,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1 index bbdf7e9e3c9b..4f2795b80c25 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -128,8 +128,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -302,8 +301,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -495,8 +493,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -683,8 +680,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -875,8 +871,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1069,8 +1064,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1277,8 +1271,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1539,8 +1532,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1763,8 +1755,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1984,8 +1975,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2227,8 +2217,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2311,10 +2300,10 @@ end { <# .Synopsis -create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. +Create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.

Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API. .Description -create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. +Create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.

Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API. .Example $insightsToInvoke = [ordered]@{ @@ -2477,8 +2466,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2559,13 +2547,13 @@ end { <# .Synopsis -create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.

Note:
1. ‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API.
.Description -create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.

Note:
1. ‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API. @@ -2728,8 +2716,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2810,7 +2797,7 @@ end { <# .Synopsis -create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues. These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address a specific support problem area. @@ -2822,7 +2809,7 @@ In the absence of the ‘requiredParameters’ it is likely that some of the sol ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the request for diagnostics
3. ‘requiredParameters’ from the Solutions response is the same as ‘properties.parameters’ in the request for Troubleshooters .Description -create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues. These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address a specific support problem area. @@ -2999,8 +2986,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3081,13 +3067,13 @@ end { <# .Synopsis -create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. +Create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes. These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers. Troubleshooters terminate at a well curated solution based off of resource backend signals and customer manual selections. .Description -create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. +Create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes. These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers. @@ -3237,8 +3223,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3433,8 +3418,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3631,8 +3615,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3711,9 +3694,9 @@ end { <# .Synopsis -update the requiredInputs or additional information needed to execute the solution +Update the requiredInputs or additional information needed to execute the solution .Description -update the requiredInputs or additional information needed to execute the solution +Update the requiredInputs or additional information needed to execute the solution .Example $parameters = [ordered]@{ "SearchText" = "Can not Search" @@ -3878,8 +3861,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Restart-AzSelfHelpTroubleshooter.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Restart-AzSelfHelpTroubleshooter.ps1 index c1229f1fa0c3..345f5502bc4c 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Restart-AzSelfHelpTroubleshooter.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Restart-AzSelfHelpTroubleshooter.ps1 @@ -130,8 +130,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Stop-AzSelfHelpTroubleshooter.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Stop-AzSelfHelpTroubleshooter.ps1 index 265e0661bd51..fc94d4d177c0 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Stop-AzSelfHelpTroubleshooter.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Stop-AzSelfHelpTroubleshooter.ps1 @@ -134,8 +134,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Update-AzSelfHelpSolution.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Update-AzSelfHelpSolution.ps1 index 71dfec23ddb5..ec16edd51347 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/exports/Update-AzSelfHelpSolution.ps1 +++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Update-AzSelfHelpSolution.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the requiredInputs or additional information needed to execute the solution +Update the requiredInputs or additional information needed to execute the solution .Description -update the requiredInputs or additional information needed to execute the solution +Update the requiredInputs or additional information needed to execute the solution .Example $parameters = [ordered]@{ "SearchText" = "Can not Search" @@ -183,8 +183,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/SelfHelp.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/SelfHelp.cs index 000ec7604fa2..96c2421fc62e 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/SelfHelp.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/api/SelfHelp.cs @@ -6161,7 +6161,7 @@ public partial class SelfHelp case global::System.Net.HttpStatusCode.NoContent: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.739\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onNoContent(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.752\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: @@ -6822,7 +6822,7 @@ public partial class SelfHelp case global::System.Net.HttpStatusCode.NoContent: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.739\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onNoContent(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@4.0.752\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_Continue.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_Continue.cs index 1b1da086af3d..0cd3640170aa 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_Continue.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_Continue.cs @@ -489,7 +489,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueExpanded.cs index 5ccf2a1d147f..f86a6d15b822 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueExpanded.cs @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaIdentity.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaIdentity.cs index 5463e9a061f8..7a5dc7deeece 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaIdentity.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaIdentity.cs @@ -483,7 +483,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaIdentityExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaIdentityExpanded.cs index d91ccb014c95..d3ef77b981c0 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaIdentityExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaIdentityExpanded.cs @@ -496,7 +496,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaJsonFilePath.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaJsonFilePath.cs index ccd0293318be..ea46701d495c 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaJsonFilePath.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaJsonFilePath.cs @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaJsonString.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaJsonString.cs index 88f78966a4a5..a24dba66c5cc 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaJsonString.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpContinueTroubleshooter_ContinueViaJsonString.cs @@ -489,7 +489,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_Warm.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_Warm.cs index 465b76ed4406..ba240069c953 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_Warm.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_Warm.cs @@ -483,7 +483,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmExpanded.cs index 0029a806bf3e..25014cb383d2 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmExpanded.cs @@ -484,7 +484,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaIdentity.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaIdentity.cs index 186fef86e93b..9f6176423957 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaIdentity.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaIdentity.cs @@ -477,7 +477,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaIdentityExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaIdentityExpanded.cs index eeb5b29dfc27..fa69ba4f8874 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaIdentityExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaIdentityExpanded.cs @@ -478,7 +478,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaJsonFilePath.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaJsonFilePath.cs index 63161c41d273..8bc9ee6844ab 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaJsonFilePath.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaJsonFilePath.cs @@ -485,7 +485,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaJsonString.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaJsonString.cs index f7d6d252cdaf..d9ae04299e23 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaJsonString.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/InvokeAzSelfHelpWarmSolutionUp_WarmViaJsonString.cs @@ -483,7 +483,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateExpanded.cs index 7ba22a2c6f1e..549f17d16796 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateExpanded.cs @@ -48,15 +48,6 @@ public partial class NewAzSelfHelpDiagnostic_CreateExpanded : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpDiagnost /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaIdentityExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaIdentityExpanded.cs index c785cb7a57ac..b796d2e0c33c 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaIdentityExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaIdentityExpanded.cs @@ -48,15 +48,6 @@ public partial class NewAzSelfHelpDiagnostic_CreateViaIdentityExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -239,11 +230,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpDiagnost /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,24 +561,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaJsonFilePath.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaJsonFilePath.cs index fc6c2fda154d..05368fa9c525 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaJsonFilePath.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaJsonFilePath.cs @@ -46,17 +46,8 @@ public partial class NewAzSelfHelpDiagnostic_CreateViaJsonFilePath : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -250,11 +241,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpDiagnost /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -570,24 +556,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaJsonString.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaJsonString.cs index ff7cf7a10ae9..426bf2a8eff3 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaJsonString.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpDiagnostic_CreateViaJsonString.cs @@ -46,15 +46,6 @@ public partial class NewAzSelfHelpDiagnostic_CreateViaJsonString : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -248,11 +239,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpDiagnost /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -568,24 +554,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateExpanded.cs index 7df60d6a823e..24baf7ca16ac 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateExpanded.cs @@ -45,15 +45,6 @@ public partial class NewAzSelfHelpSimplifiedSolution_CreateExpanded : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Simplified Solutions response. private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource _simplifiedSolutionsRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.SimplifiedSolutionsResource(); @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpSimplifi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaIdentityExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaIdentityExpanded.cs index eacb17538ab7..66e5d5e91708 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaIdentityExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaIdentityExpanded.cs @@ -45,15 +45,6 @@ public partial class NewAzSelfHelpSimplifiedSolution_CreateViaIdentityExpanded : /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Simplified Solutions response. private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource _simplifiedSolutionsRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.SimplifiedSolutionsResource(); @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpSimplifi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -573,24 +559,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaJsonFilePath.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaJsonFilePath.cs index df2bc149c0ac..1924c4c40253 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaJsonFilePath.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaJsonFilePath.cs @@ -46,17 +46,8 @@ public partial class NewAzSelfHelpSimplifiedSolution_CreateViaJsonFilePath : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -250,11 +241,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpSimplifi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -570,24 +556,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaJsonString.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaJsonString.cs index aab2c87f2e51..87adcf8946d5 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaJsonString.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSimplifiedSolution_CreateViaJsonString.cs @@ -46,15 +46,6 @@ public partial class NewAzSelfHelpSimplifiedSolution_CreateViaJsonString : globa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -248,11 +239,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpSimplifi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -568,24 +554,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateExpanded.cs index 53ca89ed9444..32ef6bfbd75b 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateExpanded.cs @@ -53,15 +53,6 @@ public partial class NewAzSelfHelpSolution_CreateExpanded : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Solution response. private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource _solutionRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.SolutionResource(); @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpSolution /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -589,24 +575,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaIdentityExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaIdentityExpanded.cs index 69e2f7b85732..c967f3a1c90b 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaIdentityExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaIdentityExpanded.cs @@ -53,15 +53,6 @@ public partial class NewAzSelfHelpSolution_CreateViaIdentityExpanded : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Solution response. private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource _solutionRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.SolutionResource(); @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpSolution /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaJsonFilePath.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaJsonFilePath.cs index 56f6b18f9a6f..375f63c0d075 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaJsonFilePath.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaJsonFilePath.cs @@ -54,17 +54,8 @@ public partial class NewAzSelfHelpSolution_CreateViaJsonFilePath : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -258,11 +249,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpSolution /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,24 +564,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaJsonString.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaJsonString.cs index 0accc06302d7..9cb35ddda480 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaJsonString.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/NewAzSelfHelpSolution_CreateViaJsonString.cs @@ -54,15 +54,6 @@ public partial class NewAzSelfHelpSolution_CreateViaJsonString : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -256,11 +247,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.NewAzSelfHelpSolution /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -576,24 +562,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/StopAzSelfHelpTroubleshooter_End.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/StopAzSelfHelpTroubleshooter_End.cs index 3873eea8479a..722a1a51bdbd 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/StopAzSelfHelpTroubleshooter_End.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/StopAzSelfHelpTroubleshooter_End.cs @@ -472,7 +472,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/StopAzSelfHelpTroubleshooter_EndViaIdentity.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/StopAzSelfHelpTroubleshooter_EndViaIdentity.cs index d9a31572ced9..90e6dbdf882c 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/StopAzSelfHelpTroubleshooter_EndViaIdentity.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/StopAzSelfHelpTroubleshooter_EndViaIdentity.cs @@ -465,7 +465,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateExpanded.cs index bc8ae1096987..09c428bc5bff 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateExpanded.cs @@ -42,15 +42,6 @@ public partial class UpdateAzSelfHelpSolution_UpdateExpanded : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Solution PatchRequest body private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionPatchRequestBody _solutionPatchRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.SolutionPatchRequestBody(); @@ -258,11 +249,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.UpdateAzSelfHelpSolut /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,24 +564,7 @@ public UpdateAzSelfHelpSolution_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaIdentityExpanded.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaIdentityExpanded.cs index 12bc771ab255..82d28286c5b4 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaIdentityExpanded.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaIdentityExpanded.cs @@ -42,15 +42,6 @@ public partial class UpdateAzSelfHelpSolution_UpdateViaIdentityExpanded : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Solution PatchRequest body private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionPatchRequestBody _solutionPatchRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.SolutionPatchRequestBody(); @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.UpdateAzSelfHelpSolut /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -569,24 +555,7 @@ public UpdateAzSelfHelpSolution_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaJsonFilePath.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaJsonFilePath.cs index 6cf909c99669..482e7c0cdf07 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaJsonFilePath.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaJsonFilePath.cs @@ -43,17 +43,8 @@ public partial class UpdateAzSelfHelpSolution_UpdateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -247,11 +238,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.UpdateAzSelfHelpSolut /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -567,24 +553,7 @@ public UpdateAzSelfHelpSolution_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaJsonString.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaJsonString.cs index 84030ef17bc5..0c02fa38ccb1 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaJsonString.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/cmdlets/UpdateAzSelfHelpSolution_UpdateViaJsonString.cs @@ -43,15 +43,6 @@ public partial class UpdateAzSelfHelpSolution_UpdateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// 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.SelfHelp.Category(global::Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.ParameterCategory.Runtime)] @@ -245,11 +236,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Cmdlets.UpdateAzSelfHelpSolut /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -565,24 +551,7 @@ public UpdateAzSelfHelpSolution_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 5a4651157008..59d462a2efab 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -36,14 +36,23 @@ internal class PsHelpInfo public object Role { get; } public string NonTerminatingErrors { get; } + public static string CapitalizeFirstLetter(string text) + { + if (string.IsNullOrEmpty(text)) + return text; + + return char.ToUpper(text[0]) + text.Substring(1); + } + public PsHelpInfo(PSObject helpObject = null) { helpObject = helpObject ?? new PSObject(); CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); ModuleName = helpObject.GetProperty("ModuleName"); - Synopsis = helpObject.GetProperty("Synopsis"); + Synopsis = CapitalizeFirstLetter(helpObject.GetProperty("Synopsis")); Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + Description = CapitalizeFirstLetter(Description); AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); Category = helpObject.GetProperty("Category"); HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 0af07743d645..0ac7fd8389db 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -218,13 +218,12 @@ public string GetProcessCustomAttributesAtRuntime() private string GetLoginVerification() { - if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) + if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet) { return $@" {Indent}{Indent}$context = Get-AzContext {Indent}{Indent}if (-not $context -and -not $testPlayback) {{ -{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" -{Indent}{Indent}{Indent}exit +{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in."" {Indent}{Indent}}} "; } diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 7da856f9513a..1fab27551d68 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -392,6 +392,7 @@ public CommentInfo(VariantGroup variantGroup) var helpInfo = variantGroup.HelpInfo; Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() ?? helpInfo.Description.EmptyIfNull(); + Description = PsHelpInfo.CapitalizeFirstLetter(Description); // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; Synopsis = synopsis.NullIfEmpty() ?? Description; diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/Context.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/Context.cs index abfc7feb5ad8..cd07414a6a52 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/Context.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime /// The IContext Interface defines the communication mechanism for input customization. ///
/// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext { diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/MessageAttribute.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/MessageAttribute.cs index 83f1356164da..0894cdedd7a4 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime public class GenericBreakingChangeAttribute : Attribute { private string _message; - //A dexcription of what the change is about, non mandatory + //A description of what the change is about, non mandatory public string ChangeDescription { get; set; } = null; + //Name of the module that is being deprecated + public string moduleName { get; set; } = String.IsNullOrEmpty(@"") ? @"Az.SelfHelp" : @""; + //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } public string DeprecateByAzVersion { get; } @@ -82,7 +85,7 @@ public void PrintCustomAttributeInfo(Action writeOutput) } writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.moduleName, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -191,11 +194,11 @@ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this( this.IsEstimatedGaDateSet = true; } } - + public void PrintCustomAttributeInfo(Action writeOutput) { writeOutput(this._message); - + if (IsEstimatedGaDateSet) { writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/Properties/Resources.resx b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/SelfHelp/SelfHelp.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/src/Network/Network/AutorestUpgradeLog.md b/src/Network/Network/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Network/Network/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/Properties/AssemblyInfo.cs b/src/Network/NetworkSecurityPerimeter.Autorest/Properties/AssemblyInfo.cs index 31811cc799db..0d881b427640 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/Properties/AssemblyInfo.cs +++ b/src/Network/NetworkSecurityPerimeter.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - NetworkSecurityPerimeter")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("7.23.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("7.23.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/Az.NetworkSecurityPerimeter.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Az.NetworkSecurityPerimeter.md index 4e9f75f4f79f..1edc755f983c 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/docs/Az.NetworkSecurityPerimeter.md +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Az.NetworkSecurityPerimeter.md @@ -1,6 +1,6 @@ --- Module Name: Az.NetworkSecurityPerimeter -Module Guid: 19cb1f22-64db-4916-ae5c-e611e0181a66 +Module Guid: 09f634b7-e3c8-41f0-9a46-55371ed397a7 Download Help Link: https://learn.microsoft.com/powershell/module/az.networksecurityperimeter Help Version: 1.0.0.0 Locale: en-US @@ -41,22 +41,22 @@ Gets the list of service tags supported by NSP. These service tags can be used to list access rules in NSP. ### [New-AzNetworkSecurityPerimeter](New-AzNetworkSecurityPerimeter.md) -create a Network Security Perimeter. +Create a Network Security Perimeter. ### [New-AzNetworkSecurityPerimeterAccessRule](New-AzNetworkSecurityPerimeterAccessRule.md) -create a network access rule. +Create a network access rule. ### [New-AzNetworkSecurityPerimeterAssociation](New-AzNetworkSecurityPerimeterAssociation.md) -create a NSP resource association. +Create a NSP resource association. ### [New-AzNetworkSecurityPerimeterLink](New-AzNetworkSecurityPerimeterLink.md) -create NSP link resource. +Create NSP link resource. ### [New-AzNetworkSecurityPerimeterLoggingConfiguration](New-AzNetworkSecurityPerimeterLoggingConfiguration.md) -create NSP logging configuration. +Create NSP logging configuration. ### [New-AzNetworkSecurityPerimeterProfile](New-AzNetworkSecurityPerimeterProfile.md) -create a network profile. +Create a network profile. ### [Remove-AzNetworkSecurityPerimeter](Remove-AzNetworkSecurityPerimeter.md) Deletes a network security perimeter. diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeter.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeter.md index ad434ff6259d..c9ed6bb61bef 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeter.md +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeter.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzNetworkSecurityPerimeter ## SYNOPSIS -create a Network Security Perimeter. +Create a Network Security Perimeter. ## SYNTAX @@ -45,7 +45,7 @@ New-AzNetworkSecurityPerimeter -Name -ResourceGroupName -JsonS ``` ## DESCRIPTION -create a Network Security Perimeter. +Create a Network Security Perimeter. ## EXAMPLES diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterAccessRule.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterAccessRule.md index cb7f2dd6f21c..1f596a391e0c 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterAccessRule.md +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterAccessRule.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzNetworkSecurityPerimeterAccessRule ## SYNOPSIS -create a network access rule. +Create a network access rule. ## SYNTAX @@ -83,7 +83,7 @@ New-AzNetworkSecurityPerimeterAccessRule -Name -ProfileName -R ``` ## DESCRIPTION -create a network access rule. +Create a network access rule. ## EXAMPLES diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterAssociation.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterAssociation.md index c95128a7d46b..fd473028d7ef 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterAssociation.md +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterAssociation.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzNetworkSecurityPerimeterAssociation ## SYNOPSIS -create a NSP resource association. +Create a NSP resource association. ## SYNTAX @@ -64,7 +64,7 @@ New-AzNetworkSecurityPerimeterAssociation -Name -ResourceGroupName -ResourceGroupName -S ``` ## DESCRIPTION -create NSP link resource. +Create NSP link resource. ## EXAMPLES diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterLoggingConfiguration.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterLoggingConfiguration.md index 56055b248968..b37926ca8346 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterLoggingConfiguration.md +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterLoggingConfiguration.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzNetworkSecurityPerimeterLoggingConfiguration ## SYNOPSIS -create NSP logging configuration. +Create NSP logging configuration. ## SYNTAX @@ -64,7 +64,7 @@ New-AzNetworkSecurityPerimeterLoggingConfiguration -ResourceGroupName - ``` ## DESCRIPTION -create NSP logging configuration. +Create NSP logging configuration. ## EXAMPLES diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterProfile.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterProfile.md index 238c38404901..0e218d3e7827 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterProfile.md +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/New-AzNetworkSecurityPerimeterProfile.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzNetworkSecurityPerimeterProfile ## SYNOPSIS -create a network profile. +Create a network profile. ## SYNTAX @@ -61,7 +61,7 @@ New-AzNetworkSecurityPerimeterProfile -Name -ResourceGroupName ``` ## DESCRIPTION -create a network profile. +Create a network profile. ## EXAMPLES diff --git a/src/NetworkCloud/NetworkCloud.Autorest/Properties/AssemblyInfo.cs b/src/NetworkCloud/NetworkCloud.Autorest/Properties/AssemblyInfo.cs index 5ffb103f64e8..d1723e116865 100644 --- a/src/NetworkCloud/NetworkCloud.Autorest/Properties/AssemblyInfo.cs +++ b/src/NetworkCloud/NetworkCloud.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - NetworkCloud")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.2.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/NetworkCloud/NetworkCloud.Autorest/docs/Az.NetworkCloud.md b/src/NetworkCloud/NetworkCloud.Autorest/docs/Az.NetworkCloud.md index ddeed30380eb..015c6217f1dd 100644 --- a/src/NetworkCloud/NetworkCloud.Autorest/docs/Az.NetworkCloud.md +++ b/src/NetworkCloud/NetworkCloud.Autorest/docs/Az.NetworkCloud.md @@ -1,6 +1,6 @@ --- Module Name: Az.NetworkCloud -Module Guid: eb2cc21e-b11c-4bd1-93b0-ddc86e985310 +Module Guid: 0fe65d85-c7a2-4a45-982d-f9746d5f1486 Download Help Link: https://learn.microsoft.com/powershell/module/az.networkcloud Help Version: 1.0.0.0 Locale: en-US diff --git a/src/NetworkCloud/NetworkCloud.Autorest/docs/Update-AzNetworkCloudCluster.md b/src/NetworkCloud/NetworkCloud.Autorest/docs/Update-AzNetworkCloudCluster.md index b21cfbd79a20..addacca87821 100644 --- a/src/NetworkCloud/NetworkCloud.Autorest/docs/Update-AzNetworkCloudCluster.md +++ b/src/NetworkCloud/NetworkCloud.Autorest/docs/Update-AzNetworkCloudCluster.md @@ -497,7 +497,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/NetworkCloud/NetworkCloud.Autorest/docs/Update-AzNetworkCloudClusterManager.md b/src/NetworkCloud/NetworkCloud.Autorest/docs/Update-AzNetworkCloudClusterManager.md index b5e050973b89..12210cbc1dad 100644 --- a/src/NetworkCloud/NetworkCloud.Autorest/docs/Update-AzNetworkCloudClusterManager.md +++ b/src/NetworkCloud/NetworkCloud.Autorest/docs/Update-AzNetworkCloudClusterManager.md @@ -88,7 +88,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/NetworkCloud/NetworkCloud/AutorestUpgradeLog.md b/src/NetworkCloud/NetworkCloud/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/NetworkCloud/NetworkCloud/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/NetworkFunction/NetworkFunction.Autorest/Properties/AssemblyInfo.cs b/src/NetworkFunction/NetworkFunction.Autorest/Properties/AssemblyInfo.cs index cb85dad18a45..cc2f1d106cd9 100644 --- a/src/NetworkFunction/NetworkFunction.Autorest/Properties/AssemblyInfo.cs +++ b/src/NetworkFunction/NetworkFunction.Autorest/Properties/AssemblyInfo.cs @@ -20,8 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - NetworkFunction")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.5")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.5")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/NetworkFunction/NetworkFunction.Autorest/docs/Az.NetworkFunction.md b/src/NetworkFunction/NetworkFunction.Autorest/docs/Az.NetworkFunction.md index c747427161a4..e97612f6203b 100644 --- a/src/NetworkFunction/NetworkFunction.Autorest/docs/Az.NetworkFunction.md +++ b/src/NetworkFunction/NetworkFunction.Autorest/docs/Az.NetworkFunction.md @@ -1,6 +1,6 @@ --- Module Name: Az.NetworkFunction -Module Guid: 8e269219-9c00-4745-a2e9-4f38cf2648ea +Module Guid: 34ac3b0e-1cff-4094-9f3f-a74248a68908 Download Help Link: https://learn.microsoft.com/powershell/module/az.networkfunction Help Version: 1.0.0.0 Locale: en-US @@ -21,7 +21,7 @@ Gets the specified Azure Traffic Collector in a specified resource group Creates or updates a Collector Policy resource ### [New-AzNetworkFunctionTrafficCollector](New-AzNetworkFunctionTrafficCollector.md) -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource ### [Remove-AzNetworkFunctionCollectorPolicy](Remove-AzNetworkFunctionCollectorPolicy.md) Deletes a specified Collector Policy resource. @@ -33,11 +33,11 @@ Deletes a specified Azure Traffic Collector resource. Creates or updates a Collector Policy resource ### [Update-AzNetworkFunctionCollectorPolicyTag](Update-AzNetworkFunctionCollectorPolicyTag.md) -update the specified Collector Policy tags. +Update the specified Collector Policy tags. ### [Update-AzNetworkFunctionTrafficCollector](Update-AzNetworkFunctionTrafficCollector.md) Creates or updates a Azure Traffic Collector resource ### [Update-AzNetworkFunctionTrafficCollectorTag](Update-AzNetworkFunctionTrafficCollectorTag.md) -update the specified Azure Traffic Collector tags. +Update the specified Azure Traffic Collector tags. diff --git a/src/NetworkFunction/NetworkFunction.Autorest/docs/New-AzNetworkFunctionTrafficCollector.md b/src/NetworkFunction/NetworkFunction.Autorest/docs/New-AzNetworkFunctionTrafficCollector.md index a8d71d74bceb..8350e178d97b 100644 --- a/src/NetworkFunction/NetworkFunction.Autorest/docs/New-AzNetworkFunctionTrafficCollector.md +++ b/src/NetworkFunction/NetworkFunction.Autorest/docs/New-AzNetworkFunctionTrafficCollector.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzNetworkFunctionTrafficCollector ## SYNOPSIS -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource ## SYNTAX @@ -40,7 +40,7 @@ New-AzNetworkFunctionTrafficCollector -Name -ResourceGroupName ``` ## DESCRIPTION -create a Azure Traffic Collector resource +Create a Azure Traffic Collector resource ## EXAMPLES diff --git a/src/NetworkFunction/NetworkFunction.Autorest/docs/Update-AzNetworkFunctionCollectorPolicyTag.md b/src/NetworkFunction/NetworkFunction.Autorest/docs/Update-AzNetworkFunctionCollectorPolicyTag.md index ffe12221f2a6..a7efce718440 100644 --- a/src/NetworkFunction/NetworkFunction.Autorest/docs/Update-AzNetworkFunctionCollectorPolicyTag.md +++ b/src/NetworkFunction/NetworkFunction.Autorest/docs/Update-AzNetworkFunctionCollectorPolicyTag.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzNetworkFunctionCollectorPolicyTag ## SYNOPSIS -update the specified Collector Policy tags. +Update the specified Collector Policy tags. ## SYNTAX @@ -47,7 +47,7 @@ Update-AzNetworkFunctionCollectorPolicyTag -AzureTrafficCollectorName - ``` ## DESCRIPTION -update the specified Collector Policy tags. +Update the specified Collector Policy tags. ## EXAMPLES diff --git a/src/NetworkFunction/NetworkFunction.Autorest/docs/Update-AzNetworkFunctionTrafficCollectorTag.md b/src/NetworkFunction/NetworkFunction.Autorest/docs/Update-AzNetworkFunctionTrafficCollectorTag.md index bb8fd7c42d2c..42586d791a5f 100644 --- a/src/NetworkFunction/NetworkFunction.Autorest/docs/Update-AzNetworkFunctionTrafficCollectorTag.md +++ b/src/NetworkFunction/NetworkFunction.Autorest/docs/Update-AzNetworkFunctionTrafficCollectorTag.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzNetworkFunctionTrafficCollectorTag ## SYNOPSIS -update the specified Azure Traffic Collector tags. +Update the specified Azure Traffic Collector tags. ## SYNTAX @@ -40,7 +40,7 @@ Update-AzNetworkFunctionTrafficCollectorTag -AzureTrafficCollectorName ``` ## DESCRIPTION -update the specified Azure Traffic Collector tags. +Update the specified Azure Traffic Collector tags. ## EXAMPLES diff --git a/src/NetworkFunction/NetworkFunction/AutorestUpgradeLog.md b/src/NetworkFunction/NetworkFunction/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/NetworkFunction/NetworkFunction/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/NewRelic/NewRelic.Autorest/Properties/AssemblyInfo.cs b/src/NewRelic/NewRelic.Autorest/Properties/AssemblyInfo.cs index 7216927f5988..95c8b809a544 100644 --- a/src/NewRelic/NewRelic.Autorest/Properties/AssemblyInfo.cs +++ b/src/NewRelic/NewRelic.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - NewRelic")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/NewRelic/NewRelic.Autorest/docs/Az.NewRelic.md b/src/NewRelic/NewRelic.Autorest/docs/Az.NewRelic.md index d9bb45331a8a..4d1c64bdfae2 100644 --- a/src/NewRelic/NewRelic.Autorest/docs/Az.NewRelic.md +++ b/src/NewRelic/NewRelic.Autorest/docs/Az.NewRelic.md @@ -1,6 +1,6 @@ --- Module Name: Az.NewRelic -Module Guid: 9594ee80-6c29-41b6-a615-e8689b5ae0dd +Module Guid: f1f46d24-302b-4b40-8849-a63236071cfa Download Help Link: https://learn.microsoft.com/powershell/module/az.newrelic Help Version: 1.0.0.0 Locale: en-US @@ -63,7 +63,7 @@ Returns the latest SaaS linked to the newrelic organization of the underlying mo Links a new SaaS to the newrelic organization of the underlying monitor. ### [Invoke-AzNewRelicResubscribeMonitor](Invoke-AzNewRelicResubscribeMonitor.md) -Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace +Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace ### [New-AzNewRelicFilteringTagObject](New-AzNewRelicFilteringTagObject.md) Create an in-memory object for FilteringTag. diff --git a/src/NewRelic/NewRelic.Autorest/docs/Invoke-AzNewRelicResubscribeMonitor.md b/src/NewRelic/NewRelic.Autorest/docs/Invoke-AzNewRelicResubscribeMonitor.md index e423cf3d8ab9..a605fbad8f97 100644 --- a/src/NewRelic/NewRelic.Autorest/docs/Invoke-AzNewRelicResubscribeMonitor.md +++ b/src/NewRelic/NewRelic.Autorest/docs/Invoke-AzNewRelicResubscribeMonitor.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Invoke-AzNewRelicResubscribeMonitor ## SYNOPSIS -Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace +Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace ## SYNTAX diff --git a/src/NewRelic/NewRelic.Autorest/resources/README.md b/src/NewRelic/NewRelic.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/NewRelic/NewRelic.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/NewRelic/NewRelic/AutorestUpgradeLog.md b/src/NewRelic/NewRelic/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/NewRelic/NewRelic/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Nginx/Nginx.Autorest/Properties/AssemblyInfo.cs b/src/Nginx/Nginx.Autorest/Properties/AssemblyInfo.cs index 3f4b29f3f97a..e9f26d6746c2 100644 --- a/src/Nginx/Nginx.Autorest/Properties/AssemblyInfo.cs +++ b/src/Nginx/Nginx.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Nginx")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.2.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Nginx/Nginx.Autorest/docs/Az.Nginx.md b/src/Nginx/Nginx.Autorest/docs/Az.Nginx.md index 98e1bea1807b..ebd308951c0b 100644 --- a/src/Nginx/Nginx.Autorest/docs/Az.Nginx.md +++ b/src/Nginx/Nginx.Autorest/docs/Az.Nginx.md @@ -1,6 +1,6 @@ --- Module Name: Az.Nginx -Module Guid: 7a45cf2c-9da1-4949-a4bd-578750ea3f20 +Module Guid: 77537ce1-c6a5-49c5-99db-394c38b7a8cd Download Help Link: https://learn.microsoft.com/powershell/module/az.nginx Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Nginx/Nginx.Autorest/docs/Update-AzNginxDeployment.md b/src/Nginx/Nginx.Autorest/docs/Update-AzNginxDeployment.md index 1a1bef073377..1863c7c219c9 100644 --- a/src/Nginx/Nginx.Autorest/docs/Update-AzNginxDeployment.md +++ b/src/Nginx/Nginx.Autorest/docs/Update-AzNginxDeployment.md @@ -161,7 +161,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: diff --git a/src/Nginx/Nginx.Autorest/resources/README.md b/src/Nginx/Nginx.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Nginx/Nginx.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Nginx/Nginx/AutorestUpgradeLog.md b/src/Nginx/Nginx/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Nginx/Nginx/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Oracle/Oracle.Autorest/Properties/AssemblyInfo.cs b/src/Oracle/Oracle.Autorest/Properties/AssemblyInfo.cs index ed610af22d59..d5a1d19b019f 100644 --- a/src/Oracle/Oracle.Autorest/Properties/AssemblyInfo.cs +++ b/src/Oracle/Oracle.Autorest/Properties/AssemblyInfo.cs @@ -20,9 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Oracle")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.2.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Oracle/Oracle.Autorest/docs/Az.Oracle.md b/src/Oracle/Oracle.Autorest/docs/Az.Oracle.md index 23171dd35203..af7e6cdd3d5b 100644 --- a/src/Oracle/Oracle.Autorest/docs/Az.Oracle.md +++ b/src/Oracle/Oracle.Autorest/docs/Az.Oracle.md @@ -1,6 +1,6 @@ --- Module Name: Az.Oracle -Module Guid: 7fe37b20-8414-454f-98c1-fee11f1b09fa +Module Guid: fad72bd4-9013-41c2-bf18-d732260f8660 Download Help Link: https://learn.microsoft.com/powershell/module/az.oracle Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbVersion.md b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbVersion.md index f6ae9bf4a375..7a881b0637fa 100644 --- a/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbVersion.md +++ b/src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbVersion.md @@ -62,6 +62,21 @@ IsPreview : True Lists the available Oracle Database versions for **eastus2**. For more information, execute `Get-Help Get-AzOracleDbVersion`. +### Example 2: List versions for a specific shape +```powershell +Get-AzOracleDbVersion -Location eastus2 +``` + +```output +Version : 19c +VersionFull : 19.22.0.0 +IsDefault : True +IsPreview : False +``` + +Filters versions by compute shape. +For more information, execute `Get-Help Get-AzOracleDbVersion`. + ## PARAMETERS ### -DbSystemId diff --git a/src/Oracle/Oracle.Autorest/resources/README.md b/src/Oracle/Oracle.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Oracle/Oracle.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Oracle/Oracle/AutorestUpgradeLog.md b/src/Oracle/Oracle/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Oracle/Oracle/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Orbital/Orbital.Autorest/Properties/AssemblyInfo.cs b/src/Orbital/Orbital.Autorest/Properties/AssemblyInfo.cs index c5461e6d56f4..c1e31efee161 100644 --- a/src/Orbital/Orbital.Autorest/Properties/AssemblyInfo.cs +++ b/src/Orbital/Orbital.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Orbital")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.3")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.3")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Orbital/Orbital.Autorest/docs/Az.Orbital.md b/src/Orbital/Orbital.Autorest/docs/Az.Orbital.md index 414352ee1f41..25ef858133fe 100644 --- a/src/Orbital/Orbital.Autorest/docs/Az.Orbital.md +++ b/src/Orbital/Orbital.Autorest/docs/Az.Orbital.md @@ -1,6 +1,6 @@ --- Module Name: Az.Orbital -Module Guid: da3f3c81-b8f0-4648-9b05-4afd458a4b16 +Module Guid: 7f95ed80-8ce2-4752-8c12-36c25211a08f Download Help Link: https://learn.microsoft.com/powershell/module/az.orbital Help Version: 1.0.0.0 Locale: en-US @@ -28,7 +28,7 @@ Gets the specified spacecraft in a specified resource group. Gets the specified contact in a specified resource group. ### [New-AzOrbitalContactProfile](New-AzOrbitalContactProfile.md) -create a contact profile. +Create a contact profile. ### [New-AzOrbitalContactProfileLinkChannelObject](New-AzOrbitalContactProfileLinkChannelObject.md) Create an in-memory object for ContactProfileLinkChannel. @@ -37,10 +37,10 @@ Create an in-memory object for ContactProfileLinkChannel. Create an in-memory object for ContactProfileLink. ### [New-AzOrbitalSpacecraft](New-AzOrbitalSpacecraft.md) -create a spacecraft resource. +Create a spacecraft resource. ### [New-AzOrbitalSpacecraftContact](New-AzOrbitalSpacecraftContact.md) -create a contact. +Create a contact. ### [New-AzOrbitalSpacecraftLinkObject](New-AzOrbitalSpacecraftLinkObject.md) Create an in-memory object for SpacecraftLink. @@ -55,11 +55,11 @@ Deletes a specified spacecraft resource. Deletes a specified contact. ### [Update-AzOrbitalContactProfile](Update-AzOrbitalContactProfile.md) -update the specified contact profile tags. +Update the specified contact profile tags. ### [Update-AzOrbitalSpacecraft](Update-AzOrbitalSpacecraft.md) -update the specified spacecraft tags. +Update the specified spacecraft tags. ### [Update-AzOrbitalSpacecraftContact](Update-AzOrbitalSpacecraftContact.md) -update a contact. +Update a contact. diff --git a/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalContactProfile.md b/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalContactProfile.md index 4fc81c2fdd3b..d330407f6a10 100644 --- a/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalContactProfile.md +++ b/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalContactProfile.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzOrbitalContactProfile ## SYNOPSIS -create a contact profile. +Create a contact profile. ## SYNTAX @@ -37,7 +37,7 @@ New-AzOrbitalContactProfile -Name -ResourceGroupName -JsonStri ``` ## DESCRIPTION -create a contact profile. +Create a contact profile. ## EXAMPLES diff --git a/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalSpacecraft.md b/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalSpacecraft.md index 1bb75923c754..101cbbd4b0fd 100644 --- a/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalSpacecraft.md +++ b/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalSpacecraft.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzOrbitalSpacecraft ## SYNOPSIS -create a spacecraft resource. +Create a spacecraft resource. ## SYNTAX @@ -35,7 +35,7 @@ New-AzOrbitalSpacecraft -Name -ResourceGroupName -JsonString < ``` ## DESCRIPTION -create a spacecraft resource. +Create a spacecraft resource. ## EXAMPLES diff --git a/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalSpacecraftContact.md b/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalSpacecraftContact.md index 2f34b6f80f14..2eeaffc92602 100644 --- a/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalSpacecraftContact.md +++ b/src/Orbital/Orbital.Autorest/docs/New-AzOrbitalSpacecraftContact.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzOrbitalSpacecraftContact ## SYNOPSIS -create a contact. +Create a contact. ## SYNTAX @@ -43,7 +43,7 @@ New-AzOrbitalSpacecraftContact -Name -ResourceGroupName -Space ``` ## DESCRIPTION -create a contact. +Create a contact. ## EXAMPLES diff --git a/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalContactProfile.md b/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalContactProfile.md index 5fe7b9b8680a..431c4c28cd78 100644 --- a/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalContactProfile.md +++ b/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalContactProfile.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzOrbitalContactProfile ## SYNOPSIS -update the specified contact profile tags. +Update the specified contact profile tags. ## SYNTAX @@ -39,7 +39,7 @@ Update-AzOrbitalContactProfile -Name -ResourceGroupName -JsonS ``` ## DESCRIPTION -update the specified contact profile tags. +Update the specified contact profile tags. ## EXAMPLES diff --git a/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalSpacecraft.md b/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalSpacecraft.md index b2ef8156ab4d..f0ecca0070a3 100644 --- a/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalSpacecraft.md +++ b/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalSpacecraft.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzOrbitalSpacecraft ## SYNOPSIS -update the specified spacecraft tags. +Update the specified spacecraft tags. ## SYNTAX @@ -39,7 +39,7 @@ Update-AzOrbitalSpacecraft -Name -ResourceGroupName -JsonStrin ``` ## DESCRIPTION -update the specified spacecraft tags. +Update the specified spacecraft tags. ## EXAMPLES diff --git a/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalSpacecraftContact.md b/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalSpacecraftContact.md index d3c25d6034d8..96450bc0c24d 100644 --- a/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalSpacecraftContact.md +++ b/src/Orbital/Orbital.Autorest/docs/Update-AzOrbitalSpacecraftContact.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzOrbitalSpacecraftContact ## SYNOPSIS -update a contact. +Update a contact. ## SYNTAX @@ -33,7 +33,7 @@ Update-AzOrbitalSpacecraftContact -Name -SpacecraftInputObject -ResourceGroupName -Kind -Locatio ``` ## DESCRIPTION -create a new peering or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering or create an existing peering with the specified name under the given subscription and resource group. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/docs/New-AzPeeringAsn.md b/src/Peering/Peering.Autorest/docs/New-AzPeeringAsn.md index f7a9b9724d67..91cdeaf09c3d 100644 --- a/src/Peering/Peering.Autorest/docs/New-AzPeeringAsn.md +++ b/src/Peering/Peering.Autorest/docs/New-AzPeeringAsn.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPeeringAsn ## SYNOPSIS -create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. +Create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. ## SYNTAX @@ -19,7 +19,7 @@ New-AzPeeringAsn -Name [-SubscriptionId ] [-PeerAsn ] ``` ## DESCRIPTION -create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. +Create a new peer ASN or create an existing peer ASN with the specified name under the given subscription. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/docs/New-AzPeeringConnectionMonitorTest.md b/src/Peering/Peering.Autorest/docs/New-AzPeeringConnectionMonitorTest.md index f93d2802470f..f9a01781f647 100644 --- a/src/Peering/Peering.Autorest/docs/New-AzPeeringConnectionMonitorTest.md +++ b/src/Peering/Peering.Autorest/docs/New-AzPeeringConnectionMonitorTest.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPeeringConnectionMonitorTest ## SYNOPSIS -create a connection monitor test with the specified name under the given subscription, resource group and peering service. +Create a connection monitor test with the specified name under the given subscription, resource group and peering service. ## SYNTAX @@ -19,7 +19,7 @@ New-AzPeeringConnectionMonitorTest -Name -PeeringServiceName - ``` ## DESCRIPTION -create a connection monitor test with the specified name under the given subscription, resource group and peering service. +Create a connection monitor test with the specified name under the given subscription, resource group and peering service. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/docs/New-AzPeeringRegisteredAsn.md b/src/Peering/Peering.Autorest/docs/New-AzPeeringRegisteredAsn.md index c8bcbf3ba8db..a29fa062372d 100644 --- a/src/Peering/Peering.Autorest/docs/New-AzPeeringRegisteredAsn.md +++ b/src/Peering/Peering.Autorest/docs/New-AzPeeringRegisteredAsn.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPeeringRegisteredAsn ## SYNOPSIS -create a new registered ASN with the specified name under the given subscription, resource group and peering. +Create a new registered ASN with the specified name under the given subscription, resource group and peering. ## SYNTAX @@ -19,7 +19,7 @@ New-AzPeeringRegisteredAsn -Name -PeeringName -ResourceGroupNa ``` ## DESCRIPTION -create a new registered ASN with the specified name under the given subscription, resource group and peering. +Create a new registered ASN with the specified name under the given subscription, resource group and peering. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/docs/New-AzPeeringRegisteredPrefix.md b/src/Peering/Peering.Autorest/docs/New-AzPeeringRegisteredPrefix.md index df0ca876f2ca..fbc111dc4a9d 100644 --- a/src/Peering/Peering.Autorest/docs/New-AzPeeringRegisteredPrefix.md +++ b/src/Peering/Peering.Autorest/docs/New-AzPeeringRegisteredPrefix.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPeeringRegisteredPrefix ## SYNOPSIS -create a new registered prefix with the specified name under the given subscription, resource group and peering. +Create a new registered prefix with the specified name under the given subscription, resource group and peering. ## SYNTAX @@ -19,7 +19,7 @@ New-AzPeeringRegisteredPrefix -Name -PeeringName -ResourceGrou ``` ## DESCRIPTION -create a new registered prefix with the specified name under the given subscription, resource group and peering. +Create a new registered prefix with the specified name under the given subscription, resource group and peering. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/docs/New-AzPeeringService.md b/src/Peering/Peering.Autorest/docs/New-AzPeeringService.md index 5c4521949454..e5932249d0f7 100644 --- a/src/Peering/Peering.Autorest/docs/New-AzPeeringService.md +++ b/src/Peering/Peering.Autorest/docs/New-AzPeeringService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPeeringService ## SYNOPSIS -create a new peering service or create an existing peering with the specified name under the given subscription and resource group. +Create a new peering service or create an existing peering with the specified name under the given subscription and resource group. ## SYNTAX @@ -20,7 +20,7 @@ New-AzPeeringService -Name -ResourceGroupName -Location -PeeringServiceName -Resource ``` ## DESCRIPTION -create a new prefix with the specified name under the given subscription, resource group and peering service. +Create a new prefix with the specified name under the given subscription, resource group and peering service. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/docs/Update-AzPeering.md b/src/Peering/Peering.Autorest/docs/Update-AzPeering.md index b20ad146b558..b67cd14836dd 100644 --- a/src/Peering/Peering.Autorest/docs/Update-AzPeering.md +++ b/src/Peering/Peering.Autorest/docs/Update-AzPeering.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzPeering ## SYNOPSIS -update tags for a peering with the specified name under the given subscription and resource group. +Update tags for a peering with the specified name under the given subscription and resource group. ## SYNTAX @@ -25,7 +25,7 @@ Update-AzPeering -InputObject [-Tag ] [-DefaultPro ``` ## DESCRIPTION -update tags for a peering with the specified name under the given subscription and resource group. +Update tags for a peering with the specified name under the given subscription and resource group. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/docs/Update-AzPeeringAsn.md b/src/Peering/Peering.Autorest/docs/Update-AzPeeringAsn.md index 195c7c0af7a1..68ed7cd108f4 100644 --- a/src/Peering/Peering.Autorest/docs/Update-AzPeeringAsn.md +++ b/src/Peering/Peering.Autorest/docs/Update-AzPeeringAsn.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzPeeringAsn ## SYNOPSIS -update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. +Update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. ## SYNTAX @@ -26,7 +26,7 @@ Update-AzPeeringAsn -InputObject [-PeerAsn ] [-PeerCon ``` ## DESCRIPTION -update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. +Update a new peer ASN or update an existing peer ASN with the specified name under the given subscription. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/docs/Update-AzPeeringConnectionMonitorTest.md b/src/Peering/Peering.Autorest/docs/Update-AzPeeringConnectionMonitorTest.md index ad2236ad34d1..21e443c46b5e 100644 --- a/src/Peering/Peering.Autorest/docs/Update-AzPeeringConnectionMonitorTest.md +++ b/src/Peering/Peering.Autorest/docs/Update-AzPeeringConnectionMonitorTest.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzPeeringConnectionMonitorTest ## SYNOPSIS -update a connection monitor test with the specified name under the given subscription, resource group and peering service. +Update a connection monitor test with the specified name under the given subscription, resource group and peering service. ## SYNTAX @@ -34,7 +34,7 @@ Update-AzPeeringConnectionMonitorTest -Name -PeeringServiceInputObject ``` ## DESCRIPTION -update a connection monitor test with the specified name under the given subscription, resource group and peering service. +Update a connection monitor test with the specified name under the given subscription, resource group and peering service. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/docs/Update-AzPeeringRegisteredAsn.md b/src/Peering/Peering.Autorest/docs/Update-AzPeeringRegisteredAsn.md index 9db6055a72de..b5ae8a261d02 100644 --- a/src/Peering/Peering.Autorest/docs/Update-AzPeeringRegisteredAsn.md +++ b/src/Peering/Peering.Autorest/docs/Update-AzPeeringRegisteredAsn.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzPeeringRegisteredAsn ## SYNOPSIS -update a new registered ASN with the specified name under the given subscription, resource group and peering. +Update a new registered ASN with the specified name under the given subscription, resource group and peering. ## SYNTAX @@ -32,7 +32,7 @@ Update-AzPeeringRegisteredAsn -Name -PeeringInputObject -PeeringInputObject [-Tag ] [-Def ``` ## DESCRIPTION -update tags for a peering service with the specified name under the given subscription and resource group. +Update tags for a peering service with the specified name under the given subscription and resource group. ## EXAMPLES diff --git a/src/Peering/Peering.Autorest/resources/README.md b/src/Peering/Peering.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Peering/Peering.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Peering/Peering/AutorestUpgradeLog.md b/src/Peering/Peering/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Peering/Peering/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Pinecone/Pinecone.Autorest/Properties/AssemblyInfo.cs b/src/Pinecone/Pinecone.Autorest/Properties/AssemblyInfo.cs index f2d0c7c5cc61..57815a598961 100644 --- a/src/Pinecone/Pinecone.Autorest/Properties/AssemblyInfo.cs +++ b/src/Pinecone/Pinecone.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Pinecone")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Pinecone/Pinecone.Autorest/custom/Az.Pinecone.custom.psm1 b/src/Pinecone/Pinecone.Autorest/custom/Az.Pinecone.custom.psm1 index a064cdae7eb7..c5160516293c 100644 --- a/src/Pinecone/Pinecone.Autorest/custom/Az.Pinecone.custom.psm1 +++ b/src/Pinecone/Pinecone.Autorest/custom/Az.Pinecone.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.Pinecone.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Pinecone.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.Pinecone.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.Pinecone.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/Pinecone/Pinecone.Autorest/custom/README.md b/src/Pinecone/Pinecone.Autorest/custom/README.md index 509724ec3b32..3852f7cae51b 100644 --- a/src/Pinecone/Pinecone.Autorest/custom/README.md +++ b/src/Pinecone/Pinecone.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.Pinecone` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.Pinecone.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.Pinecone` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.Pinecone.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.Pinecone.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.Pinecone.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Pinecone`. - `Microsoft.Azure.PowerShell.Cmdlets.Pinecone.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.Pinecone`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Pinecone`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.Pinecone.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/Pinecone/Pinecone.Autorest/docs/Az.Pinecone.md b/src/Pinecone/Pinecone.Autorest/docs/Az.Pinecone.md index f7e3c0b85073..4534146fb618 100644 --- a/src/Pinecone/Pinecone.Autorest/docs/Az.Pinecone.md +++ b/src/Pinecone/Pinecone.Autorest/docs/Az.Pinecone.md @@ -1,6 +1,6 @@ --- Module Name: Az.Pinecone -Module Guid: 1f613ee5-8830-4ca9-adf3-6d91fd935c12 +Module Guid: afadb6f6-db41-400c-8ca8-53db201fcc89 Download Help Link: https://learn.microsoft.com/powershell/module/az.pinecone Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Pinecone/Pinecone.Autorest/docs/README.md b/src/Pinecone/Pinecone.Autorest/docs/README.md index ecd273575dba..39294683181e 100644 --- a/src/Pinecone/Pinecone.Autorest/docs/README.md +++ b/src/Pinecone/Pinecone.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.Pinecone` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder. +This directory contains the documentation of the cmdlets for the `Az.Pinecone` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. ## Info - Modifiable: no @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.Pinecone` m - Packaged: yes ## Details -The process of documentation generation loads `Az.Pinecone` 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 +The process of documentation generation loads `Az.Pinecone` 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/Pinecone/Pinecone.Autorest/resources/README.md b/src/Pinecone/Pinecone.Autorest/resources/README.md deleted file mode 100644 index 736492341e3d..000000000000 --- a/src/Pinecone/Pinecone.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Pinecone/Pinecone.Autorest/test/README.md b/src/Pinecone/Pinecone.Autorest/test/README.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/Pinecone/Pinecone.Autorest/test/README.md +++ b/src/Pinecone/Pinecone.Autorest/test/README.md @@ -1,5 +1,5 @@ # 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. +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 diff --git a/src/Pinecone/Pinecone/AutorestUpgradeLog.md b/src/Pinecone/Pinecone/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Pinecone/Pinecone/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Portal/Portal.Autorest/Properties/AssemblyInfo.cs b/src/Portal/Portal.Autorest/Properties/AssemblyInfo.cs index 41117eda57d0..34ba99a0e189 100644 --- a/src/Portal/Portal.Autorest/Properties/AssemblyInfo.cs +++ b/src/Portal/Portal.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Portal")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.3.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Portal/Portal.Autorest/docs/Az.Portal.md b/src/Portal/Portal.Autorest/docs/Az.Portal.md index 38f6e374fd80..8e0250686891 100644 --- a/src/Portal/Portal.Autorest/docs/Az.Portal.md +++ b/src/Portal/Portal.Autorest/docs/Az.Portal.md @@ -1,6 +1,6 @@ --- Module Name: Az.Portal -Module Guid: 31aca27a-d75c-4e24-9a57-ed8c410db168 +Module Guid: f4a6ad3d-570e-4003-8d20-97d51d9c47d6 Download Help Link: https://learn.microsoft.com/powershell/module/az.portal Help Version: 1.0.0.0 Locale: en-US @@ -15,7 +15,7 @@ Microsoft Azure PowerShell: Portal Dashboard cmdlets Gets the Dashboard. ### [New-AzPortalDashboard](New-AzPortalDashboard.md) -create a Dashboard. +Create a Dashboard. ### [Remove-AzPortalDashboard](Remove-AzPortalDashboard.md) Deletes the Dashboard. @@ -24,5 +24,5 @@ Deletes the Dashboard. Creates or updates a Dashboard. ### [Update-AzPortalDashboard](Update-AzPortalDashboard.md) -update an existing Dashboard. +Update an existing Dashboard. diff --git a/src/Portal/Portal.Autorest/docs/New-AzPortalDashboard.md b/src/Portal/Portal.Autorest/docs/New-AzPortalDashboard.md index 3857dccd28e0..1e76bc9e7fc6 100644 --- a/src/Portal/Portal.Autorest/docs/New-AzPortalDashboard.md +++ b/src/Portal/Portal.Autorest/docs/New-AzPortalDashboard.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPortalDashboard ## SYNOPSIS -create a Dashboard. +Create a Dashboard. ## SYNTAX @@ -44,7 +44,7 @@ New-AzPortalDashboard -Name -ResourceGroupName -JsonString -ResourceGroupName -JsonString ``` ## DESCRIPTION -update an existing Dashboard. +Update an existing Dashboard. ## EXAMPLES diff --git a/src/Portal/Portal.Autorest/resources/README.md b/src/Portal/Portal.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Portal/Portal.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Portal/Portal/AutorestUpgradeLog.md b/src/Portal/Portal/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Portal/Portal/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/ProviderHub/ProviderHub.Autorest/Properties/AssemblyInfo.cs b/src/ProviderHub/ProviderHub.Autorest/Properties/AssemblyInfo.cs index e3fba78c1601..cdeae4ec8c7a 100644 --- a/src/ProviderHub/ProviderHub.Autorest/Properties/AssemblyInfo.cs +++ b/src/ProviderHub/ProviderHub.Autorest/Properties/AssemblyInfo.cs @@ -20,9 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ProviderHub")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.3.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/ProviderHub/ProviderHub.Autorest/docs/Az.ProviderHub.md b/src/ProviderHub/ProviderHub.Autorest/docs/Az.ProviderHub.md index 026ad80874f4..ebc4995ed878 100644 --- a/src/ProviderHub/ProviderHub.Autorest/docs/Az.ProviderHub.md +++ b/src/ProviderHub/ProviderHub.Autorest/docs/Az.ProviderHub.md @@ -1,6 +1,6 @@ --- Module Name: Az.ProviderHub -Module Guid: 95c8f444-a907-430e-baab-c2bf0cdb6ed0 +Module Guid: d5671359-9dfb-4852-9cea-f7a7706bf032 Download Help Link: https://learn.microsoft.com/powershell/module/az.providerhub Help Version: 1.0.0.0 Locale: en-US diff --git a/src/ProviderHub/ProviderHub.Autorest/resources/README.md b/src/ProviderHub/ProviderHub.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/ProviderHub/ProviderHub.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/ProviderHub/ProviderHub/AutorestUpgradeLog.md b/src/ProviderHub/ProviderHub/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/ProviderHub/ProviderHub/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Purview/Purview.Autorest/Properties/AssemblyInfo.cs b/src/Purview/Purview.Autorest/Properties/AssemblyInfo.cs index 003b19b58a23..5bc60879cfa5 100644 --- a/src/Purview/Purview.Autorest/Properties/AssemblyInfo.cs +++ b/src/Purview/Purview.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Purview")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Purview/Purview.Autorest/docs/Az.Purview.md b/src/Purview/Purview.Autorest/docs/Az.Purview.md index c8678a29a2de..404257f4bbd1 100644 --- a/src/Purview/Purview.Autorest/docs/Az.Purview.md +++ b/src/Purview/Purview.Autorest/docs/Az.Purview.md @@ -1,6 +1,6 @@ --- Module Name: Az.Purview -Module Guid: 349e9634-6886-45d0-a8b3-23cd2d2958f4 +Module Guid: 55af64d2-4254-4e7c-9c2a-54c3a0fa1c04 Download Help Link: https://learn.microsoft.com/powershell/module/az.purview Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Purview/Purview.Autorest/resources/README.md b/src/Purview/Purview.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Purview/Purview.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Purview/Purview/AutorestUpgradeLog.md b/src/Purview/Purview/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Purview/Purview/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Purview/Purviewdata.Autorest/Properties/AssemblyInfo.cs b/src/Purview/Purviewdata.Autorest/Properties/AssemblyInfo.cs index cd36b9b0078f..89fd2d88b613 100644 --- a/src/Purview/Purviewdata.Autorest/Properties/AssemblyInfo.cs +++ b/src/Purview/Purviewdata.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Purviewdata")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Purview/Purviewdata.Autorest/docs/Az.Purviewdata.md b/src/Purview/Purviewdata.Autorest/docs/Az.Purviewdata.md index 67656f673a26..3a48cf745b6d 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Az.Purviewdata.md +++ b/src/Purview/Purviewdata.Autorest/docs/Az.Purviewdata.md @@ -1,6 +1,6 @@ --- Module Name: Az.Purviewdata -Module Guid: baba4dc6-ecdd-456d-ba3a-f8fb48565905 +Module Guid: 3ab7c16a-a86e-4e8e-ae5d-e3e758d2ffd0 Download Help Link: https://learn.microsoft.com/powershell/module/az.purviewdata Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Purview/Purviewdata.Autorest/resources/README.md b/src/Purview/Purviewdata.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Purview/Purviewdata.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Quantum/Quantum.Autorest/Properties/AssemblyInfo.cs b/src/Quantum/Quantum.Autorest/Properties/AssemblyInfo.cs index c824f08fd055..f509a7632a74 100644 --- a/src/Quantum/Quantum.Autorest/Properties/AssemblyInfo.cs +++ b/src/Quantum/Quantum.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Quantum")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Quantum/Quantum.Autorest/docs/Az.Quantum.md b/src/Quantum/Quantum.Autorest/docs/Az.Quantum.md index 55d2e638e038..fb69402bb382 100644 --- a/src/Quantum/Quantum.Autorest/docs/Az.Quantum.md +++ b/src/Quantum/Quantum.Autorest/docs/Az.Quantum.md @@ -1,6 +1,6 @@ --- Module Name: Az.Quantum -Module Guid: 65936c1e-015a-4add-ade9-753f9194ee60 +Module Guid: 46d37e44-c1e1-4732-97bf-df70012f34a3 Download Help Link: https://learn.microsoft.com/powershell/module/az.quantum Help Version: 1.0.0.0 Locale: en-US @@ -21,7 +21,7 @@ Returns the Workspace resource associated with the given name. Create an in-memory object for Provider. ### [New-AzQuantumWorkspace](New-AzQuantumWorkspace.md) -create a workspace resource. +Create a workspace resource. ### [Remove-AzQuantumWorkspace](Remove-AzQuantumWorkspace.md) Deletes a Workspace resource. @@ -30,5 +30,5 @@ Deletes a Workspace resource. Check the availability of the resource name. ### [Update-AzQuantumWorkspace](Update-AzQuantumWorkspace.md) -update an existing workspace's tags. +Update an existing workspace's tags. diff --git a/src/Quantum/Quantum.Autorest/docs/New-AzQuantumWorkspace.md b/src/Quantum/Quantum.Autorest/docs/New-AzQuantumWorkspace.md index 8c69bef7b798..202c0a1f9113 100644 --- a/src/Quantum/Quantum.Autorest/docs/New-AzQuantumWorkspace.md +++ b/src/Quantum/Quantum.Autorest/docs/New-AzQuantumWorkspace.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzQuantumWorkspace ## SYNOPSIS -create a workspace resource. +Create a workspace resource. ## SYNTAX @@ -35,7 +35,7 @@ New-AzQuantumWorkspace -Name -ResourceGroupName -JsonString -ResourceGroupName -JsonString ``` ## DESCRIPTION -update an existing workspace's tags. +Update an existing workspace's tags. ## EXAMPLES diff --git a/src/Quantum/Quantum.Autorest/resources/README.md b/src/Quantum/Quantum.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Quantum/Quantum.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Quantum/Quantum/AutorestUpgradeLog.md b/src/Quantum/Quantum/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Quantum/Quantum/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Quota/Quota.Autorest/Properties/AssemblyInfo.cs b/src/Quota/Quota.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..e304d044eb00 --- /dev/null +++ b/src/Quota/Quota.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Quota")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Quota/Quota.Autorest/custom/autogen-model-cmdlets/New-AzQuotaLimitObject.ps1 b/src/Quota/Quota.Autorest/custom/autogen-model-cmdlets/New-AzQuotaLimitObject.ps1 index b2672392f3d0..508b93674eb0 100644 --- a/src/Quota/Quota.Autorest/custom/autogen-model-cmdlets/New-AzQuotaLimitObject.ps1 +++ b/src/Quota/Quota.Autorest/custom/autogen-model-cmdlets/New-AzQuotaLimitObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.LimitObject https://learn.microsoft.com/powershell/module/Az.Quota/new-azquotalimitobject #> function New-AzQuotaLimitObject { + [Microsoft.Azure.PowerShell.Cmdlets.Quota.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.LimitObject')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Quota/Quota.Autorest/docs/Az.Quota.md b/src/Quota/Quota.Autorest/docs/Az.Quota.md index 585efbf299e0..4dc412dd44c6 100644 --- a/src/Quota/Quota.Autorest/docs/Az.Quota.md +++ b/src/Quota/Quota.Autorest/docs/Az.Quota.md @@ -1,6 +1,6 @@ --- Module Name: Az.Quota -Module Guid: bd26548c-ac2c-4447-9d5d-2e4d8c622495 +Module Guid: 01d3ee62-4ed5-45da-a444-812025faa0d4 Download Help Link: https://learn.microsoft.com/powershell/module/az.quota Help Version: 1.0.0.0 Locale: en-US @@ -27,10 +27,10 @@ Get the current usage of a resource. ### [New-AzQuota](New-AzQuota.md) Create the quota limit for the specified resource with the requested value. -To update the quota, follow these steps:\n1. +To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. -Use this PUT operation to update the quota limit. +Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request. ### [New-AzQuotaLimitObject](New-AzQuotaLimitObject.md) diff --git a/src/Quota/Quota.Autorest/docs/New-AzQuota.md b/src/Quota/Quota.Autorest/docs/New-AzQuota.md index 217c51d926b3..9b00596c93c6 100644 --- a/src/Quota/Quota.Autorest/docs/New-AzQuota.md +++ b/src/Quota/Quota.Autorest/docs/New-AzQuota.md @@ -9,10 +9,10 @@ schema: 2.0.0 ## SYNOPSIS Create the quota limit for the specified resource with the requested value. -To update the quota, follow these steps:\n1. +To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. -Use this PUT operation to update the quota limit. +Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request. ## SYNTAX @@ -45,10 +45,10 @@ New-AzQuota -ResourceName -Scope -JsonString [-Defaul ## DESCRIPTION Create the quota limit for the specified resource with the requested value. -To update the quota, follow these steps:\n1. +To create the quota, follow these steps:\n1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in [this example](https://techcommunity.microsoft.com/t5/azure-governance-and-management/using-the-new-quota-rest-api/ba-p/2183670).\n2. -Use this PUT operation to update the quota limit. +Use this PUT operation to create the quota limit. Please check the URI in location header for the detailed status of the request. ## EXAMPLES diff --git a/src/Quota/Quota/AutorestUpgradeLog.md b/src/Quota/Quota/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Quota/Quota/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Relay/Relay.Autorest/Properties/AssemblyInfo.cs b/src/Relay/Relay.Autorest/Properties/AssemblyInfo.cs index bd3633f653a7..389520f695fe 100644 --- a/src/Relay/Relay.Autorest/Properties/AssemblyInfo.cs +++ b/src/Relay/Relay.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Relay")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("2.1.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.1.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Relay/Relay.Autorest/docs/Az.Relay.md b/src/Relay/Relay.Autorest/docs/Az.Relay.md index 85b11c39bc45..5e55df4248e6 100644 --- a/src/Relay/Relay.Autorest/docs/Az.Relay.md +++ b/src/Relay/Relay.Autorest/docs/Az.Relay.md @@ -1,6 +1,6 @@ --- Module Name: Az.Relay -Module Guid: 8255faf9-3ba7-48f7-a2f5-bce38ad11823 +Module Guid: 5b2d44e9-b961-4961-be4b-5b98cfdc2a44 Download Help Link: https://learn.microsoft.com/powershell/module/az.relay Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Relay/Relay.Autorest/resources/README.md b/src/Relay/Relay.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Relay/Relay.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Relay/Relay/AutorestUpgradeLog.md b/src/Relay/Relay/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Relay/Relay/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Reservations/Reservations.Autorest/Properties/AssemblyInfo.cs b/src/Reservations/Reservations.Autorest/Properties/AssemblyInfo.cs index d606a6bbbd98..a0a1e7833679 100644 --- a/src/Reservations/Reservations.Autorest/Properties/AssemblyInfo.cs +++ b/src/Reservations/Reservations.Autorest/Properties/AssemblyInfo.cs @@ -20,9 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Reservations")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.14.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.14.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Reservations/Reservations.Autorest/docs/Az.Reservations.md b/src/Reservations/Reservations.Autorest/docs/Az.Reservations.md index d8b1f5116dd1..a7e56eece259 100644 --- a/src/Reservations/Reservations.Autorest/docs/Az.Reservations.md +++ b/src/Reservations/Reservations.Autorest/docs/Az.Reservations.md @@ -1,6 +1,6 @@ --- Module Name: Az.Reservations -Module Guid: c2d95a4e-b23f-4c3a-84b1-f8221d3f3d0e +Module Guid: ab90d519-f1ba-4382-a9c3-31ea24003993 Download Help Link: https://learn.microsoft.com/powershell/module/az.reservations Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Reservations/Reservations.Autorest/resources/README.md b/src/Reservations/Reservations.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Reservations/Reservations.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Reservations/Reservations/AutorestUpgradeLog.md b/src/Reservations/Reservations/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Reservations/Reservations/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/ResourceGraph/ResourceGraph.Autorest/Properties/AssemblyInfo.cs b/src/ResourceGraph/ResourceGraph.Autorest/Properties/AssemblyInfo.cs index 60da1fcb87ee..d4b708202c19 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/Properties/AssemblyInfo.cs +++ b/src/ResourceGraph/ResourceGraph.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ResourceGraph")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.2.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/ResourceGraph/ResourceGraph.Autorest/docs/Az.ResourceGraph.md b/src/ResourceGraph/ResourceGraph.Autorest/docs/Az.ResourceGraph.md index ad50974345fc..966dfcdce5bc 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/docs/Az.ResourceGraph.md +++ b/src/ResourceGraph/ResourceGraph.Autorest/docs/Az.ResourceGraph.md @@ -1,6 +1,6 @@ --- Module Name: Az.ResourceGraph -Module Guid: e347e012-d131-46ad-b66c-3ce95baa53fd +Module Guid: 21ee6843-587c-4707-b88a-da58c9531053 Download Help Link: https://learn.microsoft.com/powershell/module/az.resourcegraph Help Version: 1.0.0.0 Locale: en-US diff --git a/src/ResourceGraph/ResourceGraph.Autorest/resources/README.md b/src/ResourceGraph/ResourceGraph.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/ResourceGraph/ResourceGraph.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/ResourceGraph/ResourceGraph/AutorestUpgradeLog.md b/src/ResourceGraph/ResourceGraph/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/ResourceGraph/ResourceGraph/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs b/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs index 81c0c1fe4e12..4f99d9462634 100644 --- a/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs +++ b/src/Resources/Authorization.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Authorization")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("8.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("8.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Resources/Authorization.Autorest/docs/Az.Authorization.md b/src/Resources/Authorization.Autorest/docs/Az.Authorization.md index 27b23d141797..5e7e46ea13f9 100644 --- a/src/Resources/Authorization.Autorest/docs/Az.Authorization.md +++ b/src/Resources/Authorization.Autorest/docs/Az.Authorization.md @@ -1,6 +1,6 @@ --- Module Name: Az.Authorization -Module Guid: f91f515b-3470-413c-8ef0-db77a70595b9 +Module Guid: 58c9f63f-d9ae-4420-83e2-615ab154e8af Download Help Link: https://learn.microsoft.com/powershell/module/az.authorization Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Resources/Authorization.Autorest/resources/README.md b/src/Resources/Authorization.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Resources/Authorization.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/Resources/DataBoundary.Autorest/Properties/AssemblyInfo.cs b/src/Resources/DataBoundary.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..f071b323f811 --- /dev/null +++ b/src/Resources/DataBoundary.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DataBoundary")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Resources/DataBoundary.Autorest/docs/Az.DataBoundary.md b/src/Resources/DataBoundary.Autorest/docs/Az.DataBoundary.md index 716ecafdbaf2..7ee0c0a455d8 100644 --- a/src/Resources/DataBoundary.Autorest/docs/Az.DataBoundary.md +++ b/src/Resources/DataBoundary.Autorest/docs/Az.DataBoundary.md @@ -1,6 +1,6 @@ --- Module Name: Az.DataBoundary -Module Guid: c0d70364-96af-43cf-a3ca-76edff8b31b7 +Module Guid: 3da1263b-9a16-4a26-98b9-0e9add0cc6dd Download Help Link: https://learn.microsoft.com/powershell/module/az.databoundary Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Resources/MSGraph.Autorest/Az.Resources.nuspec b/src/Resources/MSGraph.Autorest/Az.Resources.nuspec deleted file mode 100644 index b5b3781d97e5..000000000000 --- a/src/Resources/MSGraph.Autorest/Az.Resources.nuspec +++ /dev/null @@ -1,32 +0,0 @@ - - - - Az.Resources - 0.1.0 - 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/Resources/MSGraph.Autorest/Properties/AssemblyInfo.cs b/src/Resources/MSGraph.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..d33617ff0b78 --- /dev/null +++ b/src/Resources/MSGraph.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MSGraph")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md b/src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md index 6932eac91b63..ceb0c94b7ce7 100644 --- a/src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md +++ b/src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md @@ -1,6 +1,6 @@ --- Module Name: Az.MSGraph -Module Guid: 9c1e9bcf-5175-4d03-99c7-a7f2f7040f46 +Module Guid: 0a85c495-8b1f-496e-9b7c-b8583dfc3993 Download Help Link: https://learn.microsoft.com/powershell/module/az.msgraph Help Version: 1.0.0.0 Locale: en-US @@ -124,19 +124,19 @@ Removes key credentials or password credentials for an service principal. Deletes entity from users. ### [Update-AzADAppFederatedCredential](Update-AzADAppFederatedCredential.md) -update the navigation property federatedIdentityCredentials in applications +Update the navigation property federatedIdentityCredentials in applications ### [Update-AzADApplication](Update-AzADApplication.md) Updates entity in applications ### [Update-AzADGroup](Update-AzADGroup.md) -update entity in groups +Update entity in groups ### [Update-AzADServicePrincipal](Update-AzADServicePrincipal.md) Updates entity in service principal ### [Update-AzADServicePrincipalAppRoleAssignment](Update-AzADServicePrincipalAppRoleAssignment.md) -update the navigation property appRoleAssignments in servicePrincipals +Update the navigation property appRoleAssignments in servicePrincipals ### [Update-AzADUser](Update-AzADUser.md) Updates entity in users diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADAppFederatedCredential.md b/src/Resources/MSGraph.Autorest/docs/Update-AzADAppFederatedCredential.md index ffb9333d6b82..502d7118055e 100644 --- a/src/Resources/MSGraph.Autorest/docs/Update-AzADAppFederatedCredential.md +++ b/src/Resources/MSGraph.Autorest/docs/Update-AzADAppFederatedCredential.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzADAppFederatedCredential ## SYNOPSIS -update the navigation property federatedIdentityCredentials in applications +Update the navigation property federatedIdentityCredentials in applications ## SYNTAX @@ -32,7 +32,7 @@ Update-AzADAppFederatedCredential -ApplicationObjectId -FederatedCreden ``` ## DESCRIPTION -update the navigation property federatedIdentityCredentials in applications +Update the navigation property federatedIdentityCredentials in applications ## EXAMPLES diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADGroup.md b/src/Resources/MSGraph.Autorest/docs/Update-AzADGroup.md index cff86d69aaf5..8b8df911c541 100644 --- a/src/Resources/MSGraph.Autorest/docs/Update-AzADGroup.md +++ b/src/Resources/MSGraph.Autorest/docs/Update-AzADGroup.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzADGroup ## SYNOPSIS -update entity in groups +Update entity in groups ## SYNTAX @@ -38,7 +38,7 @@ Update-AzADGroup -ObjectId -JsonString [-DefaultProfile -Serv ``` ## DESCRIPTION -update the navigation property appRoleAssignments in servicePrincipals +Update the navigation property appRoleAssignments in servicePrincipals ## EXAMPLES diff --git a/src/Resources/Policy.Autorest/Properties/AssemblyInfo.cs b/src/Resources/Policy.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..445040f79f78 --- /dev/null +++ b/src/Resources/Policy.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Policy")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Resources/Policy.Autorest/docs/Az.Policy.md b/src/Resources/Policy.Autorest/docs/Az.Policy.md index 9e8fa05c6b3d..ca91b9f14984 100644 --- a/src/Resources/Policy.Autorest/docs/Az.Policy.md +++ b/src/Resources/Policy.Autorest/docs/Az.Policy.md @@ -1,6 +1,6 @@ --- Module Name: Az.Policy -Module Guid: 54d436a4-6f2e-4977-b339-2b40665fd8c4 +Module Guid: 665fcf41-e63b-4f9f-9d38-9c38f5c789f9 Download Help Link: https://learn.microsoft.com/powershell/module/az.policy Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Resources/Resources/AutorestUpgradeLog.md b/src/Resources/Resources/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Resources/Resources/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/ScVmm/ScVmm.Autorest/Properties/AssemblyInfo.cs b/src/ScVmm/ScVmm.Autorest/Properties/AssemblyInfo.cs index e4cf0bd09af1..43e69fea90b8 100644 --- a/src/ScVmm/ScVmm.Autorest/Properties/AssemblyInfo.cs +++ b/src/ScVmm/ScVmm.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ScVmm")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/ScVmm/ScVmm.Autorest/custom/Az.ScVmm.custom.psm1 b/src/ScVmm/ScVmm.Autorest/custom/Az.ScVmm.custom.psm1 index 6f3ec4fe4a26..94f54e1bdc22 100644 --- a/src/ScVmm/ScVmm.Autorest/custom/Az.ScVmm.custom.psm1 +++ b/src/ScVmm/ScVmm.Autorest/custom/Az.ScVmm.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.ScVmm.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.ScVmm.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.ScVmm.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.ScVmm.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/ScVmm/ScVmm.Autorest/custom/README.md b/src/ScVmm/ScVmm.Autorest/custom/README.md index 3054ebb33e47..bb536ab3be3d 100644 --- a/src/ScVmm/ScVmm.Autorest/custom/README.md +++ b/src/ScVmm/ScVmm.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.ScVmm` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.ScVmm.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.ScVmm` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.ScVmm.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.ScVmm.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.ScVmm.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.ScVmm`. - `Microsoft.Azure.PowerShell.Cmdlets.ScVmm.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.ScVmm`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.ScVmm`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.ScVmm.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/ScVmm/ScVmm.Autorest/docs/Az.ScVmm.md b/src/ScVmm/ScVmm.Autorest/docs/Az.ScVmm.md index 549be71b70ad..a2933ea48c26 100644 --- a/src/ScVmm/ScVmm.Autorest/docs/Az.ScVmm.md +++ b/src/ScVmm/ScVmm.Autorest/docs/Az.ScVmm.md @@ -1,6 +1,6 @@ --- Module Name: Az.ScVmm -Module Guid: 968cc7e1-fefa-4096-9962-9baad09116d9 +Module Guid: 826537fd-7eed-41c9-b1ba-cbbe549efcfd Download Help Link: https://learn.microsoft.com/powershell/module/az.scvmm Help Version: 1.0.0.0 Locale: en-US diff --git a/src/ScVmm/ScVmm.Autorest/docs/README.md b/src/ScVmm/ScVmm.Autorest/docs/README.md index 094720464c66..7d43a831dc29 100644 --- a/src/ScVmm/ScVmm.Autorest/docs/README.md +++ b/src/ScVmm/ScVmm.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.ScVmm` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder. +This directory contains the documentation of the cmdlets for the `Az.ScVmm` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. ## Info - Modifiable: no @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.ScVmm` modu - Packaged: yes ## Details -The process of documentation generation loads `Az.ScVmm` 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 +The process of documentation generation loads `Az.ScVmm` 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/ScVmm/ScVmm.Autorest/resources/README.md b/src/ScVmm/ScVmm.Autorest/resources/README.md deleted file mode 100644 index 736492341e3d..000000000000 --- a/src/ScVmm/ScVmm.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# 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/ScVmm/ScVmm.Autorest/test/README.md b/src/ScVmm/ScVmm.Autorest/test/README.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/ScVmm/ScVmm.Autorest/test/README.md +++ b/src/ScVmm/ScVmm.Autorest/test/README.md @@ -1,5 +1,5 @@ # 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. +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 diff --git a/src/ScVmm/ScVmm/AutorestUpgradeLog.md b/src/ScVmm/ScVmm/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/ScVmm/ScVmm/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Security/DefenderForStorage.Autorest/Properties/AssemblyInfo.cs b/src/Security/DefenderForStorage.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..1907568c6d73 --- /dev/null +++ b/src/Security/DefenderForStorage.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DefenderForStorage")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Security/DefenderForStorage.Autorest/docs/Az.DefenderForStorage.md b/src/Security/DefenderForStorage.Autorest/docs/Az.DefenderForStorage.md index 1d62ee1155c3..98bdcd78e81d 100644 --- a/src/Security/DefenderForStorage.Autorest/docs/Az.DefenderForStorage.md +++ b/src/Security/DefenderForStorage.Autorest/docs/Az.DefenderForStorage.md @@ -1,6 +1,6 @@ --- Module Name: Az.DefenderForStorage -Module Guid: 51b17cfa-b6cf-4bf1-afd7-a55f8cb67a6b +Module Guid: a0a2e2f6-b943-4d4e-ae67-224f59997ba5 Download Help Link: https://learn.microsoft.com/powershell/module/az.defenderforstorage Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Security/Security.Autorest/Properties/AssemblyInfo.cs b/src/Security/Security.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..a49d6d522870 --- /dev/null +++ b/src/Security/Security.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Security")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsEnvironmentObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsEnvironmentObject.ps1 index ed2ab1f6d1a2..3fc499c84130 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsEnvironmentObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsEnvironmentObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AwsEnvironment https://learn.microsoft.com/powershell/module/Az.Security/new-azsecurityawsenvironmentobject #> function New-AzSecurityAwsEnvironmentObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AwsEnvironment')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsOrganizationalDataMasterObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsOrganizationalDataMasterObject.ps1 index bc18f632d4c9..65891a3829e5 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsOrganizationalDataMasterObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsOrganizationalDataMasterObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AwsOrganizationalDataMaster https://learn.microsoft.com/powershell/module/Az.Security/new-azsecurityawsorganizationaldatamasterobject #> function New-AzSecurityAwsOrganizationalDataMasterObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AwsOrganizationalDataMaster')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsOrganizationalDataMemberObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsOrganizationalDataMemberObject.ps1 index bc6458ecd4af..f04f9c5c9979 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsOrganizationalDataMemberObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAwsOrganizationalDataMemberObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AwsOrganizationalDataMember https://learn.microsoft.com/powershell/module/Az.Security/new-azsecurityawsorganizationaldatamemberobject #> function New-AzSecurityAwsOrganizationalDataMemberObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AwsOrganizationalDataMember')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAzureDevOpsScopeEnvironmentObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAzureDevOpsScopeEnvironmentObject.ps1 index 913c90709519..0450aa393e70 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAzureDevOpsScopeEnvironmentObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityAzureDevOpsScopeEnvironmentObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AzureDevOpsScopeEnvironment https://learn.microsoft.com/powershell/module/Az.Security/new-azsecurityazuredevopsscopeenvironmentobject #> function New-AzSecurityAzureDevOpsScopeEnvironmentObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.AzureDevOpsScopeEnvironment')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityConnectorActionableRemediationObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityConnectorActionableRemediationObject.ps1 index 9567f77c2ce8..2aab52a83b9b 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityConnectorActionableRemediationObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityConnectorActionableRemediationObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ActionableRemediation https://learn.microsoft.com/powershell/module/Az.Security/new-azsecurityconnectoractionableremediationobject #> function New-AzSecurityConnectorActionableRemediationObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ActionableRemediation')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorAwsOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorAwsOfferingObject.ps1 index 13c9f890a9a7..7f4c160a0328 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorAwsOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorAwsOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorAwsOffering https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritycspmmonitorawsofferingobject #> function New-AzSecurityCspmMonitorAwsOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorAwsOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.ps1 index 12d00a7d1b64..4a565d43ab48 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorAzureDevOpsOfferin https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritycspmmonitorazuredevopsofferingobject #> function New-AzSecurityCspmMonitorAzureDevOpsOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorAzureDevOpsOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGcpOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGcpOfferingObject.ps1 index 5f403590faf7..26f3e54bc188 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGcpOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGcpOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorGcpOffering https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritycspmmonitorgcpofferingobject #> function New-AzSecurityCspmMonitorGcpOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorGcpOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGitLabOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGitLabOfferingObject.ps1 index 6c965ecd30bb..bbe4d2b8c1eb 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGitLabOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGitLabOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorGitLabOffering https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritycspmmonitorgitlabofferingobject #> function New-AzSecurityCspmMonitorGitLabOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorGitLabOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGithubOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGithubOfferingObject.ps1 index 1044430598ff..04da561d598f 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGithubOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityCspmMonitorGithubOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorGithubOffering https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritycspmmonitorgithubofferingobject #> function New-AzSecurityCspmMonitorGithubOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.CspmMonitorGithubOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderCspmAwsOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderCspmAwsOfferingObject.ps1 index 3210b252ea55..d960f9a3ab0d 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderCspmAwsOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderCspmAwsOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmAwsOffering https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritydefendercspmawsofferingobject #> function New-AzSecurityDefenderCspmAwsOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmAwsOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderCspmGcpOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderCspmGcpOfferingObject.ps1 index 61a0b4d8d6d2..2739b0da2d6a 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderCspmGcpOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderCspmGcpOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmGcpOffering https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritydefendercspmgcpofferingobject #> function New-AzSecurityDefenderCspmGcpOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderCspmGcpOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForContainersAwsOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForContainersAwsOfferingObject.ps1 index 0fc814a3119e..acfcfde0d45a 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForContainersAwsOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForContainersAwsOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForContainersAwsOffer https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritydefenderforcontainersawsofferingobject #> function New-AzSecurityDefenderForContainersAwsOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForContainersAwsOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForContainersGcpOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForContainersGcpOfferingObject.ps1 index a4494e05fa16..a10742de1c5f 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForContainersGcpOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForContainersGcpOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForContainersGcpOffer https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritydefenderforcontainersgcpofferingobject #> function New-AzSecurityDefenderForContainersGcpOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForContainersGcpOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForDatabasesAwsOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForDatabasesAwsOfferingObject.ps1 index da51ecbb6ea9..df52fc62cdbe 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForDatabasesAwsOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForDatabasesAwsOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForDatabasesAwsOfferi https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritydefenderfordatabasesawsofferingobject #> function New-AzSecurityDefenderForDatabasesAwsOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForDatabasesAwsOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForDatabasesGcpOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForDatabasesGcpOfferingObject.ps1 index d61678f3208c..e613cc5e2501 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForDatabasesGcpOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForDatabasesGcpOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForDatabasesGcpOfferi https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritydefenderfordatabasesgcpofferingobject #> function New-AzSecurityDefenderForDatabasesGcpOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForDatabasesGcpOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForServersAwsOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForServersAwsOfferingObject.ps1 index c7cdfe606db9..a19090912e4c 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForServersAwsOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForServersAwsOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersAwsOffering https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritydefenderforserversawsofferingobject #> function New-AzSecurityDefenderForServersAwsOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersAwsOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForServersGcpOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForServersGcpOfferingObject.ps1 index aeea241d47bd..489a3a62f64f 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForServersGcpOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityDefenderForServersGcpOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersGcpOffering https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritydefenderforserversgcpofferingobject #> function New-AzSecurityDefenderForServersGcpOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.DefenderForServersGcpOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpOrganizationalDataMemberObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpOrganizationalDataMemberObject.ps1 index acd2067cbf76..0000588d39b2 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpOrganizationalDataMemberObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpOrganizationalDataMemberObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GcpOrganizationalDataMember https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritygcporganizationaldatamemberobject #> function New-AzSecurityGcpOrganizationalDataMemberObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GcpOrganizationalDataMember')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpOrganizationalDataOrganizationObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpOrganizationalDataOrganizationObject.ps1 index f5f781fbd3aa..e08788f2d84a 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpOrganizationalDataOrganizationObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpOrganizationalDataOrganizationObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GcpOrganizationalDataOrganiza https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritygcporganizationaldataorganizationobject #> function New-AzSecurityGcpOrganizationalDataOrganizationObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GcpOrganizationalDataOrganization')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpProjectEnvironmentObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpProjectEnvironmentObject.ps1 index 9aa4f206b9bc..d7e492b609fb 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpProjectEnvironmentObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGcpProjectEnvironmentObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GcpProjectEnvironment https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritygcpprojectenvironmentobject #> function New-AzSecurityGcpProjectEnvironmentObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GcpProjectEnvironment')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGitHubScopeEnvironmentObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGitHubScopeEnvironmentObject.ps1 index 093dedd329ff..735bdfca7bd3 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGitHubScopeEnvironmentObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGitHubScopeEnvironmentObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GitHubScopeEnvironment https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritygithubscopeenvironmentobject #> function New-AzSecurityGitHubScopeEnvironmentObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GitHubScopeEnvironment')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGitLabScopeEnvironmentObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGitLabScopeEnvironmentObject.ps1 index 52c3ee8ad9e6..9c22593bec7c 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGitLabScopeEnvironmentObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityGitLabScopeEnvironmentObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GitLabScopeEnvironment https://learn.microsoft.com/powershell/module/Az.Security/new-azsecuritygitlabscopeenvironmentobject #> function New-AzSecurityGitLabScopeEnvironmentObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.GitLabScopeEnvironment')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityInformationProtectionAwsOfferingObject.ps1 b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityInformationProtectionAwsOfferingObject.ps1 index 66d698ab2101..a0c910b99546 100644 --- a/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityInformationProtectionAwsOfferingObject.ps1 +++ b/src/Security/Security.Autorest/custom/autogen-model-cmdlets/New-AzSecurityInformationProtectionAwsOfferingObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Security.Models.InformationProtectionAwsOffer https://learn.microsoft.com/powershell/module/Az.Security/new-azsecurityinformationprotectionawsofferingobject #> function New-AzSecurityInformationProtectionAwsOfferingObject { + [Microsoft.Azure.PowerShell.Cmdlets.Security.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Security.Models.InformationProtectionAwsOffering')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Security/Security.Autorest/docs/Az.Security.md b/src/Security/Security.Autorest/docs/Az.Security.md index 3d2db2b9e89a..4e3585ac22cc 100644 --- a/src/Security/Security.Autorest/docs/Az.Security.md +++ b/src/Security/Security.Autorest/docs/Az.Security.md @@ -1,6 +1,6 @@ --- Module Name: Az.Security -Module Guid: 6f1c0dfd-dfcd-4e5b-b77c-a64a9d355ebf +Module Guid: 2e2c6146-6e31-497b-ada1-ae1a97c2fb2d Download Help Link: https://learn.microsoft.com/powershell/module/az.security Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Security/Security/AutorestUpgradeLog.md b/src/Security/Security/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Security/Security/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/SelfHelp/SelfHelp.Autorest/Properties/AssemblyInfo.cs b/src/SelfHelp/SelfHelp.Autorest/Properties/AssemblyInfo.cs index 2aaa55258b53..be05e937cac7 100644 --- a/src/SelfHelp/SelfHelp.Autorest/Properties/AssemblyInfo.cs +++ b/src/SelfHelp/SelfHelp.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - SelfHelp")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/SelfHelp/SelfHelp.Autorest/docs/Az.SelfHelp.md b/src/SelfHelp/SelfHelp.Autorest/docs/Az.SelfHelp.md index 4fc82bef2877..6e1107fcb0e4 100644 --- a/src/SelfHelp/SelfHelp.Autorest/docs/Az.SelfHelp.md +++ b/src/SelfHelp/SelfHelp.Autorest/docs/Az.SelfHelp.md @@ -1,6 +1,6 @@ --- Module Name: Az.SelfHelp -Module Guid: 7d65b6ab-a31c-4bd0-a352-36f483643432 +Module Guid: 21086141-9c7d-4392-ba2f-ddeb4dbb48f3 Download Help Link: https://learn.microsoft.com/powershell/module/az.selfhelp Help Version: 1.0.0.0 Locale: en-US @@ -50,18 +50,18 @@ Solution discovery using natural language processing. Warm up the solution resource by preloading asynchronous diagnostics results into cache ### [New-AzSelfHelpDiagnostic](New-AzSelfHelpDiagnostic.md) -create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. +Create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. \
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.\
\
\Note: \ ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API. ### [New-AzSelfHelpSimplifiedSolution](New-AzSelfHelpSimplifiedSolution.md) -create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response. \
\
\Note:\ \
1. ‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API. \
### [New-AzSelfHelpSolution](New-AzSelfHelpSolution.md) -create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. \
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues. These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address a specific support problem area. @@ -74,7 +74,7 @@ In the absence of the ‘requiredParameters’ it is likely that some of the sol ‘requiredParameters’ from the Solutions response is the same as ‘properties.parameters’ in the request for Troubleshooters ### [New-AzSelfHelpTroubleshooter](New-AzSelfHelpTroubleshooter.md) -create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. +Create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. \
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes. These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers. @@ -88,5 +88,5 @@ The old resource name is obsolete after this API is invoked. Ends the troubleshooter action ### [Update-AzSelfHelpSolution](Update-AzSelfHelpSolution.md) -update the requiredInputs or additional information needed to execute the solution +Update the requiredInputs or additional information needed to execute the solution diff --git a/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpDiagnostic.md b/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpDiagnostic.md index 77855075d4d9..08a86ee90c78 100644 --- a/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpDiagnostic.md +++ b/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpDiagnostic.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSelfHelpDiagnostic ## SYNOPSIS -create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. +Create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions. \
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.\
\
\Note: \ ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API. ## SYNTAX @@ -40,7 +40,7 @@ New-AzSelfHelpDiagnostic -Scope -SResourceName -JsonString Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.\
\
\Note: \ ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API. ## EXAMPLES diff --git a/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpSimplifiedSolution.md b/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpSimplifiedSolution.md index d8ecc91cac55..994012a8f710 100644 --- a/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpSimplifiedSolution.md +++ b/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpSimplifiedSolution.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSelfHelpSimplifiedSolution ## SYNOPSIS -create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response. \
\
\Note:\ \
1. ‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API. @@ -43,7 +43,7 @@ New-AzSelfHelpSimplifiedSolution -Scope -SResourceName -JsonSt ``` ## DESCRIPTION -create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response. \
\
\Note:\ \
1. ‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API. diff --git a/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpSolution.md b/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpSolution.md index 60d8b856a5ad..9ddaf94702b6 100644 --- a/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpSolution.md +++ b/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpSolution.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSelfHelpSolution ## SYNOPSIS -create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. +Create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. \
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues. These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address a specific support problem area. @@ -49,7 +49,7 @@ New-AzSelfHelpSolution -ResourceName -Scope -JsonString Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues. These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address a specific support problem area. diff --git a/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpTroubleshooter.md b/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpTroubleshooter.md index 7e035415f0b1..370128d58885 100644 --- a/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpTroubleshooter.md +++ b/src/SelfHelp/SelfHelp.Autorest/docs/New-AzSelfHelpTroubleshooter.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSelfHelpTroubleshooter ## SYNOPSIS -create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. +Create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. \
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes. These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers. @@ -41,7 +41,7 @@ New-AzSelfHelpTroubleshooter -Name -Scope -JsonString ``` ## DESCRIPTION -create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. +Create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger. \
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes. These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers. diff --git a/src/SelfHelp/SelfHelp.Autorest/docs/Update-AzSelfHelpSolution.md b/src/SelfHelp/SelfHelp.Autorest/docs/Update-AzSelfHelpSolution.md index 73cb87a922b0..9d6d7286c187 100644 --- a/src/SelfHelp/SelfHelp.Autorest/docs/Update-AzSelfHelpSolution.md +++ b/src/SelfHelp/SelfHelp.Autorest/docs/Update-AzSelfHelpSolution.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSelfHelpSolution ## SYNOPSIS -update the requiredInputs or additional information needed to execute the solution +Update the requiredInputs or additional information needed to execute the solution ## SYNTAX @@ -39,7 +39,7 @@ Update-AzSelfHelpSolution -ResourceName -Scope -JsonString Date: Mon, 19 Jan 2026 00:00:23 +1100 Subject: [PATCH 2/2] update changelog --- src/Network/Network/ChangeLog.md | 1 + src/NetworkCloud/NetworkCloud/ChangeLog.md | 1 + src/NetworkFunction/NetworkFunction/ChangeLog.md | 1 + src/NewRelic/NewRelic/ChangeLog.md | 1 + src/Nginx/Nginx/ChangeLog.md | 1 + src/Oracle/Oracle/ChangeLog.md | 1 + src/Orbital/Orbital/ChangeLog.md | 1 + src/Peering/Peering/ChangeLog.md | 1 + src/Pinecone/Pinecone/ChangeLog.md | 1 + src/Portal/Portal/ChangeLog.md | 1 + src/ProviderHub/ProviderHub/ChangeLog.md | 1 + src/Purview/Purview/ChangeLog.md | 1 + src/Quantum/Quantum/ChangeLog.md | 1 + src/Quota/Quota/ChangeLog.md | 1 + src/Relay/Relay/ChangeLog.md | 1 + src/Reservations/Reservations/ChangeLog.md | 1 + src/ResourceGraph/ResourceGraph/ChangeLog.md | 1 + src/Resources/Resources/ChangeLog.md | 1 + src/ScVmm/ScVmm/ChangeLog.md | 1 + src/Security/Security/ChangeLog.md | 1 + src/SelfHelp/SelfHelp/ChangeLog.md | 1 + 21 files changed, 21 insertions(+) diff --git a/src/Network/Network/ChangeLog.md b/src/Network/Network/ChangeLog.md index 0a1d69932507..e13fc1548fef 100644 --- a/src/Network/Network/ChangeLog.md +++ b/src/Network/Network/ChangeLog.md @@ -19,6 +19,7 @@ ---> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 * Onboarded `Microsoft.Security/privateLinks` to Private Link Common Cmdlets ## Version 7.24.0 diff --git a/src/NetworkCloud/NetworkCloud/ChangeLog.md b/src/NetworkCloud/NetworkCloud/ChangeLog.md index 2ce8fe6f9396..7d30f1d7e842 100644 --- a/src/NetworkCloud/NetworkCloud/ChangeLog.md +++ b/src/NetworkCloud/NetworkCloud/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 2.0.0 * Below commands to support for new Managed Identity setting. diff --git a/src/NetworkFunction/NetworkFunction/ChangeLog.md b/src/NetworkFunction/NetworkFunction/ChangeLog.md index c519c2314c55..6633f12be387 100644 --- a/src/NetworkFunction/NetworkFunction/ChangeLog.md +++ b/src/NetworkFunction/NetworkFunction/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/NewRelic/NewRelic/ChangeLog.md b/src/NewRelic/NewRelic/ChangeLog.md index 795fc32c594d..24470d8dfa0b 100644 --- a/src/NewRelic/NewRelic/ChangeLog.md +++ b/src/NewRelic/NewRelic/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.3.0 * Added AutoRest-generated NewRelic PowerShell module using API version 2025-05-01-preview diff --git a/src/Nginx/Nginx/ChangeLog.md b/src/Nginx/Nginx/ChangeLog.md index cc3cb8867a18..fcaa25eaddea 100644 --- a/src/Nginx/Nginx/ChangeLog.md +++ b/src/Nginx/Nginx/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 2.0.0 * Improved user experience and consistency. This may introduce breaking changes. Please refer to [here](https://go.microsoft.com/fwlink/?linkid=2340249). diff --git a/src/Oracle/Oracle/ChangeLog.md b/src/Oracle/Oracle/ChangeLog.md index 326ed963627b..ac18eb3e57e1 100644 --- a/src/Oracle/Oracle/ChangeLog.md +++ b/src/Oracle/Oracle/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 2.0.0 * New anchor resource types and their corresponding cmdlets for resource and network anchors diff --git a/src/Orbital/Orbital/ChangeLog.md b/src/Orbital/Orbital/ChangeLog.md index 8790846a7917..8a05608e6d3a 100644 --- a/src/Orbital/Orbital/ChangeLog.md +++ b/src/Orbital/Orbital/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Peering/Peering/ChangeLog.md b/src/Peering/Peering/ChangeLog.md index 8d988f2c6371..b1bc3622ff96 100644 --- a/src/Peering/Peering/ChangeLog.md +++ b/src/Peering/Peering/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.5.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Pinecone/Pinecone/ChangeLog.md b/src/Pinecone/Pinecone/ChangeLog.md index 93b214f692e7..b753d0a2ee06 100644 --- a/src/Pinecone/Pinecone/ChangeLog.md +++ b/src/Pinecone/Pinecone/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.0 * First preview release for module Az.Pinecone diff --git a/src/Portal/Portal/ChangeLog.md b/src/Portal/Portal/ChangeLog.md index f4b06b1e4f32..b5af3f06024d 100644 --- a/src/Portal/Portal/ChangeLog.md +++ b/src/Portal/Portal/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.4.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/ProviderHub/ProviderHub/ChangeLog.md b/src/ProviderHub/ProviderHub/ChangeLog.md index 7245f26e39b4..32d1b86f90d5 100644 --- a/src/ProviderHub/ProviderHub/ChangeLog.md +++ b/src/ProviderHub/ProviderHub/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.4.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Purview/Purview/ChangeLog.md b/src/Purview/Purview/ChangeLog.md index 9c99dcb6ff13..357e93ce4ecd 100644 --- a/src/Purview/Purview/ChangeLog.md +++ b/src/Purview/Purview/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.3.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Quantum/Quantum/ChangeLog.md b/src/Quantum/Quantum/ChangeLog.md index 027fe0f9be3f..837a2f062def 100644 --- a/src/Quantum/Quantum/ChangeLog.md +++ b/src/Quantum/Quantum/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Quota/Quota/ChangeLog.md b/src/Quota/Quota/ChangeLog.md index 8a69ef832625..87b070cf1742 100644 --- a/src/Quota/Quota/ChangeLog.md +++ b/src/Quota/Quota/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.3 * Upgraded nuget package to signed package. diff --git a/src/Relay/Relay/ChangeLog.md b/src/Relay/Relay/ChangeLog.md index f1f139747b5f..d29869dcf53c 100644 --- a/src/Relay/Relay/ChangeLog.md +++ b/src/Relay/Relay/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 3.0.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Reservations/Reservations/ChangeLog.md b/src/Reservations/Reservations/ChangeLog.md index 7c2dd80ef282..2689a97a647a 100644 --- a/src/Reservations/Reservations/ChangeLog.md +++ b/src/Reservations/Reservations/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.14.1 * Fixed purchase request missing update x-ms-mutability for location property. diff --git a/src/ResourceGraph/ResourceGraph/ChangeLog.md b/src/ResourceGraph/ResourceGraph/ChangeLog.md index c280646f31a2..3d71bbd5f49a 100644 --- a/src/ResourceGraph/ResourceGraph/ChangeLog.md +++ b/src/ResourceGraph/ResourceGraph/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 1.2.1 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Resources/Resources/ChangeLog.md b/src/Resources/Resources/ChangeLog.md index b11f31a8279e..950766283068 100644 --- a/src/Resources/Resources/ChangeLog.md +++ b/src/Resources/Resources/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 9.0.0 * Removed unavailable variant Get-AzRoleEligibleChildResource cmdlet for InputObject parameter. diff --git a/src/ScVmm/ScVmm/ChangeLog.md b/src/ScVmm/ScVmm/ChangeLog.md index 0565f073609b..775cdb565348 100644 --- a/src/ScVmm/ScVmm/ChangeLog.md +++ b/src/ScVmm/ScVmm/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.1 * Suppressed expected MachineResourceNotFound exceptions from being printed on the console. diff --git a/src/Security/Security/ChangeLog.md b/src/Security/Security/ChangeLog.md index 225e93883e6a..340e2901030a 100644 --- a/src/Security/Security/ChangeLog.md +++ b/src/Security/Security/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 1.8.0 * Upgraded nuget package to signed package. diff --git a/src/SelfHelp/SelfHelp/ChangeLog.md b/src/SelfHelp/SelfHelp/ChangeLog.md index 9fe268c80182..5725933ee156 100644 --- a/src/SelfHelp/SelfHelp/ChangeLog.md +++ b/src/SelfHelp/SelfHelp/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.3.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md).